cmake: Fix Windows test script copy

- CMake was configured to copy _run_all_tests.ps1 to
  _vkvalidatelayerdoc.ps1, resulting in _run_all_tests.ps1
  effectively calling itself in an infinte loop.
- Drop the _ prefix from the _run_all_tests.ps1 and
  _vkvalidatelayerdoc.ps1 when copying to build.

Change-Id: I4c682bebe786ef0f2f66ce2eeb9e8174eea83e6f
This commit is contained in:
Dustin Graves 2016-05-06 13:45:34 -06:00
parent a1b398dc64
commit 8e6216bfcc

View File

@ -58,9 +58,10 @@ if (NOT WIN32)
else()
if (NOT (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR))
FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/_run_all_tests.ps1 RUN_ALL)
FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/_vkvalidatelayerdoc.ps1 VALIDATE_DOC)
add_custom_target(binary-dir-symlinks ALL
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${RUN_ALL} _run_all_tests.ps1
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${RUN_ALL} _vkvalidatelayerdoc.ps1
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${RUN_ALL} run_all_tests.ps1
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${VALIDATE_DOC} vkvalidatelayerdoc.ps1
VERBATIM
)
endif()