File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ option(BUILD_SHARED_LIBS "build shared libraries" ON)
2222set (CMAKE_CXX_STANDARD 14)
2323set (CMAKE_CXX_STANDARD_REQUIRED ON )
2424
25+ include (CheckLinkerFlag)
26+ check_linker_flag(CXX "LINKER:--build-id=sha1" LINKER_SUPPORTS_BUILD_ID)
27+
2528include (GNUInstallDirs)
2629
2730list (APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake/modules)
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ endif()
3131set_target_properties (_FoundationICU PROPERTIES
3232 INSTALL_RPATH "$ORIGIN" )
3333
34+ if (LINKER_SUPPORTS_BUILD_ID)
35+ target_link_options (_FoundationICU PRIVATE "LINKER:--build-id=sha1" )
36+ endif ()
37+
3438# Copy Headers to known directory for direct client (XCTest) test builds
3539file (COPY
3640 include /
You can’t perform that action at this time.
0 commit comments