Correctely set generated_files_to_clean.
exec_program("chmod a=rwx ${CMAKE_BINARY_DIR}/bin/smpiff" OUTPUT_VARIABLE OKITOKI)
exec_program("chmod a=rwx ${CMAKE_BINARY_DIR}/bin/smpirun" OUTPUT_VARIABLE OKITOKI)
exec_program("chmod a=rwx ${CMAKE_BINARY_DIR}/bin/smpiff" OUTPUT_VARIABLE OKITOKI)
exec_program("chmod a=rwx ${CMAKE_BINARY_DIR}/bin/smpirun" OUTPUT_VARIABLE OKITOKI)
-set(generate_files_to_clean
-${CMAKE_BINARY_DIR}/src/context_sysv_config.h
-${CMAKE_BINARY_DIR}/src/gras_config.h
-${CMAKE_BINARY_DIR}/include/simgrid_config.h
-${CMAKE_BINARY_DIR}/include/smpi/smpif.h
+set(generated_headers_to_install
+ ${CMAKE_CURRENT_BINARY_DIR}/include/smpi/smpif.h
+ ${CMAKE_CURRENT_BINARY_DIR}/include/simgrid_config.h
+)
+
+set(generated_headers
+ ${CMAKE_CURRENT_BINARY_DIR}/src/context_sysv_config.h
+ ${CMAKE_CURRENT_BINARY_DIR}/src/gras_config.h
+)
+
+set(generated_files_to_clean
+${generated_headers}
+${generated_headers_to_install}
${CMAKE_BINARY_DIR}/bin/smpicc
${CMAKE_BINARY_DIR}/bin/smpif2c
${CMAKE_BINARY_DIR}/bin/smpiff
${CMAKE_BINARY_DIR}/bin/smpicc
${CMAKE_BINARY_DIR}/bin/smpif2c
${CMAKE_BINARY_DIR}/bin/smpiff
src/rngstreams/RngStream.c
)
src/rngstreams/RngStream.c
)
include/xbt/misc.h
include/xbt/sysdep.h
include/xbt/virtu.h
include/xbt/misc.h
include/xbt/sysdep.h
include/xbt/virtu.h
include/smpi/smpif.h.in
src/context_sysv_config.h.in)
include/smpi/smpif.h.in
src/context_sysv_config.h.in)
-set(GENERATE_HEADERS
- ${CMAKE_CURRENT_BINARY_DIR}/include/smpi/smpif.h
- ${CMAKE_CURRENT_BINARY_DIR}/include/simgrid_config.h
-)
-
### depend of some variables setted upper
# -->CONTEXT_THREADS CONTEXT_UCONTEXT
if(${CONTEXT_THREADS}) #pthread
### depend of some variables setted upper
# -->CONTEXT_THREADS CONTEXT_UCONTEXT
if(${CONTEXT_THREADS}) #pthread
# This is the complete list of what will be added to the source archive
set(source_to_pack
# This is the complete list of what will be added to the source archive
set(source_to_pack
${source_of_generated_headers}
${XBT_RL_SRC}
${EXTRA_DIST}
${source_of_generated_headers}
${XBT_RL_SRC}
${EXTRA_DIST}
# include files
set(HEADERS
# include files
set(HEADERS
- ${install_HEADERS}
- ${GENERATE_HEADERS}
+ ${headers_to_install}
+ ${generated_headers_to_install}
)
foreach(file ${HEADERS})
get_filename_component(location ${file} PATH)
)
foreach(file ${HEADERS})
get_filename_component(location ${file} PATH)