diff options
author | Timofey <t.danshin@corp.mail.ru> | 2016-11-02 15:24:37 +0300 |
---|---|---|
committer | Timofey <t.danshin@corp.mail.ru> | 2016-11-02 19:09:29 +0300 |
commit | 84772d00dbd265b64ae2e2fe184beb4ddc213434 (patch) | |
tree | 373557ff67a19c115903562bd7d71cac1dcf14c5 /tracking/pytracking | |
parent | 497982b085197f4fe600565f0fbd49fc97a3e145 (diff) |
Fixed compilation on Mac and Linux
Diffstat (limited to 'tracking/pytracking')
-rw-r--r-- | tracking/pytracking/CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tracking/pytracking/CMakeLists.txt b/tracking/pytracking/CMakeLists.txt index 62f539906b..a26498469b 100644 --- a/tracking/pytracking/CMakeLists.txt +++ b/tracking/pytracking/CMakeLists.txt @@ -8,12 +8,15 @@ add_compile_options( "-Wno-unused-local-typedef" ) -set(Boost_USE_STATIC_LIBS ON) set(Boost_USE_MULTITHREADED ON) -set(Boost_USE_STATIC_RUNTIME ON) + +if (PLATFORM_MAC) + set(Boost_USE_STATIC_LIBS ON) + set(Boost_USE_STATIC_RUNTIME ON) +endif() find_package(PythonLibs 2.7 REQUIRED) -find_package(Boost 1.60 REQUIRED COMPONENTS python) +find_package(Boost 1.54 REQUIRED COMPONENTS python) include_directories(${PYTHON_INCLUDE_DIRS}) add_library(${PROJECT_NAME} MODULE ${SRC}) |