From 641493cfc44ed7c96380784887be9f4b160dd78c Mon Sep 17 00:00:00 2001 From: Eric NOULARD <eric.noulard@gmail.com> Date: Tue, 20 Dec 2016 17:51:32 +0100 Subject: [PATCH] Suppress some commented code --- share/FindLustre.cmake | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/share/FindLustre.cmake b/share/FindLustre.cmake index 235f5595..b081de79 100644 --- a/share/FindLustre.cmake +++ b/share/FindLustre.cmake @@ -17,7 +17,7 @@ # LUS_FILES <Lustre files> # [USER_C_FILES <C files>] # [VERBOSE <level>] -# [LUSI] +# [LUSI] # LIBNAME <libraryName>) # # When used the Lustre_Compile macro define the variable @@ -80,7 +80,7 @@ function(Lustre_Compile) if(LUS_LUSI) set(LUSTRE_LUSI_OPT "-lusi") - endif() + endif() if (NOT LUS_LIBNAME) message(FATAL_ERROR "You should specify LIBNAME for each Lustre_Compile call.") @@ -118,9 +118,7 @@ function(Lustre_Compile) if (LUS_LUSI) add_custom_command( OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${LFILE}i - #OUTPUT ${LUSTRE_OUTPUT_DIR}/${L}.lusi - COMMAND ${LUSTRE_COMPILER} ${LUSTRE_LUSI_OPT} ${LFILE} - #COMMAND ${CMAKE_COMMAND} -E rename ${L}.lusi ${LUSTRE_OUTPUT_DIR}/${L}.lusi + COMMAND ${LUSTRE_COMPILER} ${LUSTRE_LUSI_OPT} ${LFILE} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${LFILE} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} COMMENT "Compile Lustre source(s): ${LFILE} with option -lusi." -- GitLab