Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Move install(TARGETS) in its proper directory.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 16 May 2019 12:11:13 +0000 (14:11 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 16 May 2019 12:11:13 +0000 (14:11 +0200)
Fix:
  CMake Error at tools/cmake/Distrib.cmake:28 (install):
    install TARGETS given target "graphicator" which does not exist in this directory.

tools/cmake/Distrib.cmake
tools/graphicator/CMakeLists.txt

index ba073a1..652b572 100644 (file)
@@ -25,8 +25,6 @@ endif()
 
 install(PROGRAMS ${CMAKE_BINARY_DIR}/bin/tesh  DESTINATION bin/)
 
-install(TARGETS graphicator DESTINATION bin/)
-
 install(PROGRAMS ${CMAKE_HOME_DIRECTORY}/tools/MSG_visualization/colorize.pl
   DESTINATION bin/
   RENAME simgrid-colorizer)
index 724853c..66b8af3 100644 (file)
@@ -4,6 +4,8 @@ target_link_libraries(graphicator simgrid)
 set_target_properties(graphicator PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
 ADD_TESH(graphicator --setenv srcdir=${CMAKE_HOME_DIRECTORY} --setenv bindir=${CMAKE_BINARY_DIR}/bin --cd ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/graphicator.tesh)
 
+install(TARGETS graphicator DESTINATION bin/)
+
 ## Clean generated files
 get_directory_property(extra_clean_files ADDITIONAL_MAKE_CLEAN_FILES)
 set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${extra_clean_files};${CMAKE_CURRENT_BINARY_DIR}/simgrid.trace;")