Skip to content

Commit 43fc9ac

Browse files
authored
Merge pull request #272 from dmpas/feature/shared-fix
fPIC по-умолчанию
2 parents 0e8309d + 3cdf1a5 commit 43fc9ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/tool1cd/CMakeLists.txt

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ set (TOOL1CD_HEADERS ${TOOL1CD_HEADERS} ${SYSTEMCLASSES_HEADERS})
7171
if (MSVC)
7272
add_library (tool1cd STATIC ${TOOL1CD_SOURCES} ${TOOL1CD_HEADERS})
7373
else()
74+
75+
if (UNIX)
76+
set_source_files_properties(${TOOL1CD_SOURCES}
77+
PROPERTIES COMPILE_FLAGS
78+
"-fPIC ")
79+
endif()
80+
7481
if (NOGUI)
7582
add_library (tool1cd STATIC ${TOOL1CD_SOURCES} ${TOOL1CD_HEADERS})
7683
else()

0 commit comments

Comments
 (0)