Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita386a58

Browse files
committed
"different visibility" Linker Warnung unterdrücken, wenn man im Release-Modus Boost-Programme erstellt.
1 parent5fa0f43 commita386a58

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎CMakeLists.txt‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ target_compile_features(pcre2 PUBLIC cxx_std_17)
2424
target_compile_features(pcre_jitPUBLIC cxx_std_17)
2525
target_compile_features(pcre2_jitPUBLIC cxx_std_17)
2626

27+
if(CMAKE_BUILD_TYPESTREQUAL"Release")
28+
target_compile_options(boostPRIVATE"-fvisibility=hidden")
29+
endif()
30+
2731
target_link_libraries(boostPRIVATE${Boost_LIBRARIES} Boost::regex)
2832
target_link_libraries(pcrePRIVATE"${LibPCRE_LIBRARY}")
2933
target_link_libraries(pcre2PRIVATE"${LibPCRE2_LIBRARY}")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp