build: Unset GCC_WORKING_PEDANTIC_SEMICOLON before actual compiler check

This commit is contained in:
Gabriel Ferreira
2024-05-21 20:45:07 -03:00
parent bda3479826
commit f1251f81e0

View File

@@ -58,6 +58,7 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
# Check if pedantic throws warning in trailing semicolon after {} scope
# (frequently used to make macros look like functions)
unset(GCC_WORKING_PEDANTIC_SEMICOLON)
include(CheckCXXSourceCompiles)
set(CMAKE_REQUIRED_FLAGS "-Wall -Wpedantic -Werror")
check_cxx_source_compiles(