diff options
author | Brad King <brad.king@kitware.com> | 2018-01-25 15:25:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-25 15:50:20 (GMT) |
commit | 234a069de3e365c20bc6ef42e83520a7e2547f95 (patch) | |
tree | ac9998534dc9c1187d58ba89fd233f634c0efaf7 /Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY.cmake | |
parent | 7c30a3a3c321575ee8f3bd82b9e617456c2a7396 (diff) | |
download | CMake-234a069de3e365c20bc6ef42e83520a7e2547f95.zip CMake-234a069de3e365c20bc6ef42e83520a7e2547f95.tar.gz CMake-234a069de3e365c20bc6ef42e83520a7e2547f95.tar.bz2 |
Tests: Speed up RunCMake.GeneratorExpression
Avoid enabling languages in cases that do not need them.
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY.cmake')
-rw-r--r-- | Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY.cmake | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY.cmake b/Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY.cmake index 10b37b5..55d8a99 100644 --- a/Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY.cmake +++ b/Tests/RunCMake/GeneratorExpression/NonValidTarget-TARGET_POLICY.cmake @@ -1,8 +1,4 @@ - -enable_language(CXX) - add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/copied_file.cpp" COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.cpp" "${CMAKE_CURRENT_BINARY_DIR}/copied_file$<TARGET_POLICY:CMP0004>.cpp" ) - -add_library(empty "${CMAKE_CURRENT_BINARY_DIR}/copied_file.cpp") +add_custom_target(drive DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/copied_file.cpp") |