Skip to content

Commit

Permalink
Silence CMake warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zrax committed Aug 30, 2016
1 parent 2178b10 commit c6d92ba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit c6d92ba

Please sign in to comment.