diff options
| author | Cody Northrop <cody@lunarg.com> | 2015-07-09 10:47:40 -0600 |
|---|---|---|
| committer | Cody Northrop <cody@lunarg.com> | 2015-07-09 10:49:40 -0600 |
| commit | 0b61d8b455aedbc3fe0a24eb1ea793f7d0791a0c (patch) | |
| tree | e8474832966856ea28ef75017fe07c1e60284eed | |
| parent | 19bf53be9621007568b90ea99b5aa828aa502b4f (diff) | |
| download | usermoji-0b61d8b455aedbc3fe0a24eb1ea793f7d0791a0c.tar.xz | |
layers: Update custom CMake target for Windows
| -rw-r--r-- | layers/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt index 71be28c7..8fc23d6c 100644 --- a/layers/CMakeLists.txt +++ b/layers/CMakeLists.txt @@ -42,9 +42,10 @@ if (NOT WIN32) else() if (NOT (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)) foreach (config_file ${LAYER_JSON_FILES}) - FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${config_file}.json ${config_file}-JSON) + FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${config_file}.json src_json) + FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIGURATION>/${config_file}.json dst_json) add_custom_target(${config_file}-json ALL - COMMAND copy ${config_file}-JSON ${config_file}.json + COMMAND copy ${src_json} ${dst_json} VERBATIM ) endforeach(config_file) |
