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 | |
parent | baa898789a2b70b4b969ac36a096c3fa77806ca5 (diff) | |
download | uscxml-361ce4a22955490e13adbd40eb594808142169a6.zip uscxml-361ce4a22955490e13adbd40eb594808142169a6.tar.gz uscxml-361ce4a22955490e13adbd40eb594808142169a6.tar.bz2 |
Fixed issue 138
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | contrib/patches/picoc/CMakeLists.txt | 2 |
2 files changed, 6 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) diff --git a/contrib/patches/picoc/CMakeLists.txt b/contrib/patches/picoc/CMakeLists.txt index 76fe184..2792907 100644 --- a/contrib/patches/picoc/CMakeLists.txt +++ b/contrib/patches/picoc/CMakeLists.txt @@ -3,6 +3,8 @@ project(picoc) # include_directories(${PROJECT_SOURCE_DIR}/include) +set(CMAKE_POSITION_INDEPENDENT_CODE ON) + file(GLOB PICOC_FILES ${PROJECT_SOURCE_DIR}/*.h ${PROJECT_SOURCE_DIR}/*.c |