[Lldb-commits] [lldb] r363279 - [CMake] Fix lldb-dotest for single-config generators in standalone builds
Stefan Granitz via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 13 10:35:43 PDT 2019
Author: stefan.graenitz
Date: Thu Jun 13 10:35:43 2019
New Revision: 363279
URL: http://llvm.org/viewvc/llvm-project?rev=363279&view=rev
Log:
[CMake] Fix lldb-dotest for single-config generators in standalone builds
Differential Revision: https://reviews.llvm.org/D62859
Modified:
lldb/trunk/utils/lldb-dotest/CMakeLists.txt
Modified: lldb/trunk/utils/lldb-dotest/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/utils/lldb-dotest/CMakeLists.txt?rev=363279&r1=363278&r2=363279&view=diff
==============================================================================
--- lldb/trunk/utils/lldb-dotest/CMakeLists.txt (original)
+++ lldb/trunk/utils/lldb-dotest/CMakeLists.txt Thu Jun 13 10:35:43 2019
@@ -7,7 +7,11 @@ get_property(LLDB_DOTEST_ARGS GLOBAL PRO
# Generate lldb-dotest Python driver script for each build mode.
if(LLDB_BUILT_STANDALONE)
- foreach(config_type ${CMAKE_CONFIGURATION_TYPES})
+ set(config_types ".")
+ if(CMAKE_CONFIGURATION_TYPES)
+ set(config_types ${CMAKE_CONFIGURATION_TYPES})
+ endif()
+ foreach(config_type ${config_types})
# In paths to our build-tree, replace CMAKE_CFG_INTDIR with our actual configuration names.
string(REPLACE ${CMAKE_CFG_INTDIR} ${config_type} config_runtime_output_dir ${LLVM_RUNTIME_OUTPUT_INTDIR})
string(REPLACE ${LLVM_RUNTIME_OUTPUT_INTDIR} ${config_runtime_output_dir} LLDB_DOTEST_ARGS "${LLDB_DOTEST_ARGS}")
More information about the lldb-commits
mailing list