Skip to content

Commit 1fbcca5

Browse files
committed
Drop policy CMP0037 OLD setting
CMP0037 was set to avoid warnings about using reserved target names (`test`). As of CMake 3.11, the test keyword is only reserved when the `ctest` module or testing is enabled through CMake. The llbuild build system requires at least 3.19, so this setting now just results in a warning about how the old behavior is deprecated.
1 parent b59c2e5 commit 1fbcca5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

tests/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ if(Python3_Interpreter_FOUND AND LIT_FOUND AND FILECHECK_FOUND)
4545
add_dependencies(test-llbuild ${test_target_dependencies})
4646

4747
# Add a target for running all tests.
48-
if(POLICY CMP0037)
49-
cmake_policy(SET CMP0037 OLD)
50-
endif(POLICY CMP0037)
5148
add_custom_target(test)
5249
add_dependencies(test test-llbuild)
5350
set_target_properties(test PROPERTIES FOLDER "Tests")

0 commit comments

Comments
 (0)