From 7d30fc6f553dd5acbeee90e02eb15dc5d3775702 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Thu, 16 May 2019 14:11:13 +0200 Subject: [PATCH] Move install(TARGETS) in its proper directory. 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 | 2 -- tools/graphicator/CMakeLists.txt | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/cmake/Distrib.cmake b/tools/cmake/Distrib.cmake index ba073a1376..652b572813 100644 --- a/tools/cmake/Distrib.cmake +++ b/tools/cmake/Distrib.cmake @@ -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) diff --git a/tools/graphicator/CMakeLists.txt b/tools/graphicator/CMakeLists.txt index 724853c677..66b8af3b0e 100644 --- a/tools/graphicator/CMakeLists.txt +++ b/tools/graphicator/CMakeLists.txt @@ -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;") -- 2.20.1