adjust cmake concering -fPic

This commit is contained in:
Walter Julius Hennecke 2019-02-23 11:28:28 +01:00
parent 1d7f1ff271
commit fc6557c682
2 changed files with 3 additions and 2 deletions

View file

@ -32,3 +32,4 @@ target_link_libraries(${GAME_LIB_NAME})
target_include_directories(${GAME_LIB_NAME} PUBLIC ../lua/include ../json/include)
target_compile_options(${GAME_LIB_NAME} PUBLIC -fpermissive)
set_target_properties(${GAME_LIB_NAME} PROPERTIES PREFIX "")
set_property(TARGET ${GAME_LIB_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)

View file

@ -32,5 +32,5 @@ target_link_libraries(${UI_LIB_NAME} -static -lstdc++fs)
target_compile_options(${UI_LIB_NAME} PUBLIC -Wno-narrowing -Wno-write-strings)
target_compile_definitions(${UI_LIB_NAME} PUBLIC -DUI_DLL)
set_target_properties(${UI_LIB_NAME} PROPERTIES PREFIX "")
target_compile_definitions(base_game PUBLIC -DUI_DLL)
target_compile_definitions(base_game PUBLIC -DUI_DLL)
set_property(TARGET ${UI_LIB_NAME} PROPERTY POSITION_INDEPENDENT_CODE ON)