We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8272df3 commit 1d5577cCopy full SHA for 1d5577c
tests/CMakeLists.txt
@@ -98,6 +98,15 @@ if(TE_BUILD_TEST_RUNNER)
98
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
99
100
add_executable(${CMAKE_PROJECT_NAME} ../tinyexpr.cpp tetests.cpp testingmain.cpp)
101
+ # Disable specific -Werror warnings only for tetests.cpp
102
+ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
103
+ set_source_files_properties(
104
+ tetests.cpp
105
+ PROPERTIES
106
+ COMPILE_OPTIONS
107
+ "-Wno-error=parentheses"
108
+ "-Wno-error=unused-but-set-variable")
109
+ endif()
110
if(MSVC)
111
target_compile_definitions(${CMAKE_PROJECT_NAME} PUBLIC _DISABLE_VECTOR_ANNOTATION _DISABLE_STRING_ANNOTATION
112
$<$<CONFIG:Release>:NDEBUG>)
0 commit comments