From: Martin Quinson Date: Fri, 4 Mar 2016 10:52:09 +0000 (+0100) Subject: fix out of tree builds X-Git-Tag: v3_13~563 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e27a029fd9ac8f4fbeeb04faaa410c1c09422d74?hp=f655f425f7ca5aba421dff56729318d2a8e1ee7e fix out of tree builds --- 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)