Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
xanthospap authored Dec 16, 2024
1 parent 377bc1b commit ed464ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/should_not_compile/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# Extract the Clang version as a list of major, minor, patch
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "15.0.0")
# For Clang versions less than 15.0.0
set_tests_properties(fail-build-datetime-diff-type PROPERTIES
set_tests_properties(fail-build-fractional-seconds-op-equal PROPERTIES
PASS_REGULAR_EXPRESSION "invalid operands to binary expression"
)
else()
# For Clang versions 15.0.0 or newer
set_tests_properties(fail-build-datetime-diff-type PROPERTIES
set_tests_properties(fail-build-fractional-seconds-op-equal PROPERTIES
PASS_REGULAR_EXPRESSION "'?FractionalSeconds'?\\s+and\\s+'?double'?"
)
endif()
Expand Down Expand Up @@ -64,12 +64,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# Extract the Clang version as a list of major, minor, patch
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "15.0.0")
# For Clang versions less than 15.0.0
set_tests_properties(fail-build-datetime-diff-type PROPERTIES
set_tests_properties(fail-build-fractional-seconds-op-greater PROPERTIES
PASS_REGULAR_EXPRESSION "invalid operands to binary expression"
)
else()
# For Clang versions 15.0.0 or newer
set_tests_properties(fail-build-datetime-diff-type PROPERTIES
set_tests_properties(fail-build-fractional-seconds-op-greater PROPERTIES
PASS_REGULAR_EXPRESSION "'?FractionalSeconds'?\\s+and\\s+'?double'?"
)
endif()
Expand Down

0 comments on commit ed464ff

Please sign in to comment.