Skip to content

Commit efd7065

Browse files
committed
Minor tweaks to the CMake.
1 parent b523c43 commit efd7065

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/compilation_failure_tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function(detail_add_dual_compile_test TEST_NAME TEST_FILE)
1515
add_test(NAME ${TEST_NAME}
1616
COMMAND ${CMAKE_COMMAND} --build . --target ${TEST_NAME} --config $<CONFIGURATION>
1717
WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
18-
endfunction(add_compile_test)
18+
endfunction(detail_add_dual_compile_test)
1919

2020
# adds a compilation test. two targets are created, one expected to
2121
# succeed compilation and one that is expected to fail.
@@ -26,7 +26,7 @@ function(add_dual_compile_test TEST_NAME TEST_FILE)
2626
target_compile_definitions(${TEST_NAME}_should_not_compile PRIVATE COMPILATION_TEST_USE_FAILING_CODE=1)
2727
set_tests_properties(${TEST_NAME}_should_compile PROPERTIES WILL_FAIL FALSE)
2828
set_tests_properties(${TEST_NAME}_should_not_compile PROPERTIES WILL_FAIL TRUE)
29-
endfunction(add_compile_test)
29+
endfunction(add_dual_compile_test)
3030

3131

3232
add_dual_compile_test(example_compiletest example_compiletest.cpp)

0 commit comments

Comments
 (0)