Silence CMake warning

This commit is contained in:
Michael Hansen
2016-08-30 11:42:02 -07:00
parent 2178b103fc
commit c6d92bab3f

View File

@@ -61,6 +61,10 @@ install(TARGETS pycdc
RUNTIME DESTINATION bin)
# For tests
if(POLICY CMP0037)
# Don't complain about adding a target named "test"
cmake_policy(SET CMP0037 OLD)
endif()
add_custom_target(test "${CMAKE_CURRENT_SOURCE_DIR}/pycdc_test.sh"
"${CMAKE_CURRENT_SOURCE_DIR}/tests"
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")