summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2015-07-28 20:55:56 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2015-07-28 20:55:56 +0200
commitd0fba947ade223dfa351c49ac15c6939c35b5f89 (patch)
tree714ebd8340bc1ea687ec3e57c8b444816b1d48a7 /CMakeLists.txt
parentf5d59159f1aac6e5c24476d085de3f9033c52edb (diff)
downloadfork-ledger-d0fba947ade223dfa351c49ac15c6939c35b5f89.tar.gz
fork-ledger-d0fba947ade223dfa351c49ac15c6939c35b5f89.tar.bz2
fork-ledger-d0fba947ade223dfa351c49ac15c6939c35b5f89.zip
[cmake] Use CMAKE_SYSTEM_NAME to test the platform.
APPLE and CMAKE_HOST_APPLE only check the host system, whereas CMAKE_SYSTEM_NAME checks the target system when cross-compiling.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6166780c..3c8c36ef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -225,7 +225,7 @@ macro(add_ledger_library_dependencies _target)
target_link_libraries(${_target} ${INTL_LIB})
endif()
if (HAVE_BOOST_PYTHON)
- if(APPLE)
+ if(CMAKE_SYSTEM_NAME STREQUAL Darwin)
# Don't link directly to a Python framework on OS X, to avoid segfaults
# when the module is imported from a different interpreter
target_link_libraries(${_target} ${Boost_LIBRARIES})