File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/compilation_failure_tests Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
3232add_dual_compile_test (example_compiletest example_compiletest.cpp )
You can’t perform that action at this time.
0 commit comments