We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 632fcdc commit 3a07fcbCopy full SHA for 3a07fcb
CMakeLists.txt
@@ -581,6 +581,10 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|IntelLLVM")
581
elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
582
foreach(t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME})
583
target_compile_options(${t} PRIVATE "-Wno-ignored-attributes" "-Walloc-size-larger-than=4GB")
584
+
585
+ if(BUILD_SHARED_LIBS)
586
+ target_compile_options(${t} PRIVATE "-Wno-attributes")
587
+ endif()
588
endforeach()
589
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
590
set_target_properties(${PROJECT_NAME} PROPERTIES CXX_STANDARD 14)
0 commit comments