diff options
author | Stefan Radomski <github@mintwerk.de> | 2017-05-24 19:23:07 (GMT) |
---|---|---|
committer | Stefan Radomski <github@mintwerk.de> | 2017-05-24 19:23:07 (GMT) |
commit | 361ce4a22955490e13adbd40eb594808142169a6 (patch) | |
tree | c7f7d5b455a5db65245e3a930c8e0074406c6878 /CMakeLists.txt | |
parent | baa898789a2b70b4b969ac36a096c3fa77806ca5 (diff) | |
download | uscxml-361ce4a22955490e13adbd40eb594808142169a6.zip uscxml-361ce4a22955490e13adbd40eb594808142169a6.tar.gz uscxml-361ce4a22955490e13adbd40eb594808142169a6.tar.bz2 |
Fixed issue 138
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8112d10..7906396 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,10 @@ include("${CMAKE_MODULE_PATH}/USCXMLMacros.cmake") # use folders in the IDEs for the various targets set_property(GLOBAL PROPERTY USE_FOLDERS ON) +# compile with fPIC if required +# see https://stackoverflow.com/questions/38296756/what-is-the-idiomatic-way-in-cmake-to-add-the-fpic-compiler-option +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + # use rpath with MacOSX set(CMAKE_MACOSX_RPATH 1) |