Skip to content

Commit 62c6531

Browse files
committed
Suppress build warning in test script
1 parent e563592 commit 62c6531

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ if(TE_BUILD_TEST_RUNNER)
9999

100100
add_executable(${CMAKE_PROJECT_NAME} ../tinyexpr.cpp tetests.cpp testingmain.cpp)
101101
# Disable specific -Werror warnings only for tetests.cpp
102-
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
102+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU|AppleClang")
103103
set_source_files_properties(
104104
tetests.cpp PROPERTIES COMPILE_FLAGS "-Wno-parentheses -Wno-unused-but-set-variable")
105105
endif()
106-
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU")
106+
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|GNU|AppleClang")
107107
set_source_files_properties(
108-
tinyexpr.cpp PROPERTIES COMPILE_FLAGS "-Wno-unused-function")
108+
../tinyexpr.cpp PROPERTIES COMPILE_FLAGS "-Wno-unused-function")
109109
endif()
110110
if(MSVC)
111111
target_compile_definitions(${CMAKE_PROJECT_NAME} PUBLIC _DISABLE_VECTOR_ANNOTATION _DISABLE_STRING_ANNOTATION

0 commit comments

Comments
 (0)