Only add -Wno-error=template-id-cdtor if gcc version is >= 14.1
This commit is contained in:
parent
9d58b5e8c6
commit
2ba490ace7
|
@ -37,9 +37,11 @@ target_include_directories(Clipper2
|
|||
if (WIN32)
|
||||
target_compile_options(Clipper2 PRIVATE /W4 /WX)
|
||||
else()
|
||||
target_compile_options(Clipper2 PRIVATE -Wall -Wextra -Wpedantic -Werror -Wno-error=template-id-cdtor)
|
||||
target_compile_options(Clipper2 PRIVATE -Wall -Wextra -Wpedantic -Werror)
|
||||
target_link_libraries(Clipper2 PUBLIC -lm)
|
||||
|
||||
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 14.1)
|
||||
target_compile_options(Clipper2 PRIVATE -Wno-error=template-id-cdtor)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set_target_properties(Clipper2 PROPERTIES FOLDER Libraries
|
||||
|
|
Loading…
Reference in New Issue