[A] Add option POSITION_INDEPENDENT_CODE for library target (libfort::fort).

This commit is contained in:
seleznevae
2020-02-22 13:33:36 +03:00
parent 7a8e267e9e
commit 90265dd628
3 changed files with 13 additions and 4 deletions

View File

@@ -11,8 +11,11 @@ target_include_directories(fort
)
set_target_properties(fort
PROPERTIES VERSION ${libfort_VERSION}
SOVERSION ${libfort_SOVERSION})
PROPERTIES
VERSION ${libfort_VERSION}
SOVERSION ${libfort_SOVERSION}
POSITION_INDEPENDENT_CODE ON
)
if(NOT FORT_HAVE_WCHAR)
target_compile_definitions(fort