From e27a029fd9ac8f4fbeeb04faaa410c1c09422d74 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Fri, 4 Mar 2016 11:52:09 +0100 Subject: [PATCH 1/1] fix out of tree builds --- teshsuite/smpi/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/teshsuite/smpi/CMakeLists.txt b/teshsuite/smpi/CMakeLists.txt index 4e6f7a66dc..6b946c1e8b 100644 --- a/teshsuite/smpi/CMakeLists.txt +++ b/teshsuite/smpi/CMakeLists.txt @@ -7,8 +7,9 @@ if(enable_smpi) include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi") foreach(x type-hvector type-struct type-vector) - add_executable (${x}/${x} ${x}/${x}.c) - target_link_libraries(${x}/${x} simgrid) + add_executable (${x} ${x}/${x}.c) + target_link_libraries(${x} simgrid) + set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x}) set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh) set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c) -- 2.20.1