diff options
Diffstat (limited to 'compiler/pepper-strcast/CMakeLists.txt')
-rw-r--r-- | compiler/pepper-strcast/CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/pepper-strcast/CMakeLists.txt b/compiler/pepper-strcast/CMakeLists.txt index 5f87e9488..bcc07f482 100644 --- a/compiler/pepper-strcast/CMakeLists.txt +++ b/compiler/pepper-strcast/CMakeLists.txt @@ -3,7 +3,9 @@ file(GLOB_RECURSE TESTS "src/*.test.cpp") list(REMOVE_ITEM SOURCES ${TESTS}) add_library(pepper_strcast STATIC ${SOURCES}) -set_target_properties(pepper_strcast PROPERTIES POSITION_INDEPENDENT_CODE ON) +if (NOT NNCC_LIBRARY_NO_PIC) + set_target_properties(pepper_strcast PROPERTIES POSITION_INDEPENDENT_CODE ON) +endif(NOT NNCC_LIBRARY_NO_PIC) target_include_directories(pepper_strcast PUBLIC include) target_link_libraries(pepper_strcast PRIVATE nncc_common) target_link_libraries(pepper_strcast PUBLIC nncc_coverage) |