From 06ee076a00d9361ba73c1ff4b46cd5c46e6923b5 Mon Sep 17 00:00:00 2001 From: John Schulman Date: Thu, 21 Jan 2016 11:08:55 -0800 Subject: [PATCH] fix sco CMakeLists.txt, thx Dmitry --- src/sco/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sco/CMakeLists.txt b/src/sco/CMakeLists.txt index 00b6c0a4..97381a1b 100644 --- a/src/sco/CMakeLists.txt +++ b/src/sco/CMakeLists.txt @@ -34,7 +34,8 @@ if (HAVE_BPMPD) set(BPMPD_WORKING_DIR ${CMAKE_CURRENT_BINARY_DIR}) set_property(SOURCE bpmpd_caller.cpp APPEND PROPERTY COMPILE_DEFINITIONS BPMPD_WORKING_DIR="${BPMPD_WORKING_DIR}") - file(COPY bpmpd.par ${CMAKE_CURRENT_SOURCE_DIR} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) + file(COPY bpmpd.par DESTINATION ${CMAKE_CURRENT_BINARY_DIR}) + set_property(SOURCE solver_interface.cpp APPEND PROPERTY COMPILE_DEFINITIONS HAVE_BPMPD ) endif() @@ -60,4 +61,4 @@ endif() target_link_libraries(sco ${SCO_LINK_LIBS}) -add_subdirectory(test) \ No newline at end of file +add_subdirectory(test)