Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/leethomason/tinyxml2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Nguyen <jinguyen@9801a7949465.ant.amazon.com>2017-02-21 23:31:23 +0300
committerJimmy Nguyen <jinguyen@9801a7949465.ant.amazon.com>2017-02-21 23:31:23 +0300
commit1e0b4e6b8aceaabb676adb8d1bc531bb2ff3129f (patch)
tree2b7f366c286fb8faea39db590f66d9a5c0b39046 /CMakeLists.txt
parent7f2ce0dc0e1968a1d5e9ffcc905ea85e3015c66f (diff)
Use generator expression to specify target output directory for resources directory
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9a4c0cc..dd09fe5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -98,8 +98,8 @@ endif()
# Copy test resources and create test output directory
add_custom_command(TARGET xmltest POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/resources ${CMAKE_BINARY_DIR}/resources
- COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_BINARY_DIR}/resources/out
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/resources $<TARGET_FILE_DIR:xmltest>/resources
+ COMMAND ${CMAKE_COMMAND} -E make_directory $<TARGET_FILE_DIR:xmltest>/resources/out
COMMENT "Configuring xmltest resources directory: ${CMAKE_BINARY_DIR}/resources"
)