projects/aports·blob master · refs

23 lines · 1.0 KiB

1diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
2index b6ac26b..0371b0c 100644
3--- a/src/CMakeLists.txt
4+++ b/src/CMakeLists.txt
5@@ -102,11 +102,7 @@ if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
6 if (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*")
7 target_link_libraries(graphite2 kernel32 msvcr90 mingw32 gcc user32)
8 else (${CMAKE_CXX_COMPILER} MATCHES ".*mingw.*")
9- if (GRAPHITE2_SANITIZERS)
10- target_link_libraries(graphite2 c gcc_s)
11- else ()
12- target_link_libraries(graphite2 c gcc)
13- endif ()
14+ target_link_libraries(graphite2 c gcc_s -lssp_nonshared)
15 endif()
16 include(Graphite)
17 if (BUILD_SHARED_LIBS)
18@@ -144,4 +140,4 @@ endif()
19
20
21 install(TARGETS graphite2 EXPORT graphite2 LIBRARY DESTINATION lib${LIB_SUFFIX} ARCHIVE DESTINATION lib${LIB_SUFFIX} PUBLIC_HEADER DESTINATION include/graphite2 RUNTIME DESTINATION bin)
22-install(EXPORT graphite2 DESTINATION share/graphite2 NAMESPACE gr2_)
23+install(EXPORT graphite2 DESTINATION lib${LIB_SUFFIX}/cmake/graphite2 NAMESPACE gr2_)