[llvm] r286317 - [cmake] Fix handling compiler-rt in LLVM_ENABLE_PROJECTS by turning any "-" into "_"
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 8 16:23:20 PST 2016
Author: mehdi_amini
Date: Tue Nov 8 18:23:20 2016
New Revision: 286317
URL: http://llvm.org/viewvc/llvm-project?rev=286317&view=rev
Log:
[cmake] Fix handling compiler-rt in LLVM_ENABLE_PROJECTS by turning any "-" into "_"
Modified:
llvm/trunk/CMakeLists.txt
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=286317&r1=286316&r2=286317&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Tue Nov 8 18:23:20 2016
@@ -109,6 +109,7 @@ foreach(proj ${LLVM_ENABLE_PROJECTS})
message(FATAL_ERROR "LLVM_ENABLE_PROJECTS requests ${proj} but directory not found: ${PROJ_DIR}")
endif()
string(TOUPPER "${proj}" upper_proj)
+ STRING(REGEX REPLACE "-" "_" upper_proj ${upper_proj})
set(LLVM_EXTERNAL_${upper_proj}_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../${proj}")
# There is a widely spread opinion that clang-tools-extra should be merged
# into clang. The following simulates it by always enabling clang-tools-extra
More information about the llvm-commits
mailing list