[PATCH] D46642: [cmake, unittests] Fix the CMake file for the LLDB unittests to support multiple configurations
Stella Stamenova via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 9 13:02:39 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL331914: [cmake, unittests] Fix the CMake file for the LLDB unittests to support… (authored by stella.stamenova, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D46642?vs=145931&id=145990#toc
Repository:
rL LLVM
https://reviews.llvm.org/D46642
Files:
lldb/trunk/unittests/CMakeLists.txt
Index: lldb/trunk/unittests/CMakeLists.txt
===================================================================
--- lldb/trunk/unittests/CMakeLists.txt
+++ lldb/trunk/unittests/CMakeLists.txt
@@ -42,7 +42,7 @@
add_custom_command(
TARGET ${test_name}
POST_BUILD
- COMMAND "${CMAKE_COMMAND}" -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/Inputs)
+ COMMAND "${CMAKE_COMMAND}" -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/Inputs)
target_link_libraries(${test_name} PRIVATE ${ARG_LINK_LIBS})
endfunction()
@@ -52,7 +52,7 @@
add_custom_command(
TARGET ${test_name}
POST_BUILD
- COMMAND "${CMAKE_COMMAND}" -E copy ${CMAKE_CURRENT_SOURCE_DIR}/Inputs/${INPUT} ${CMAKE_CURRENT_BINARY_DIR}/Inputs
+ COMMAND "${CMAKE_COMMAND}" -E copy ${CMAKE_CURRENT_SOURCE_DIR}/Inputs/${INPUT} ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/Inputs
COMMENT "Copying ${INPUT} to binary directory.")
endforeach()
endfunction()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46642.145990.patch
Type: text/x-patch
Size: 983 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180509/db9cbcd8/attachment.bin>
More information about the llvm-commits
mailing list