Skip to content

Commit c789310

Browse files
committed
[cmake] Fix monorepo + LLVM_BUILD_EXTERNAL_COMPILER_RT=ON.
In cmake 3.10.2, if (${VARIABLE_NAME}) seems to always be false no matter what documentation says (or maybe I just failed at reading). Anyway, if (VARIABLE_NAME) seems to do what this code intended. llvm-svn: 350361
1 parent a07bba6 commit c789310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/runtime/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ set(COMPILER_RT_SRC_ROOT ${LLVM_MAIN_SRC_DIR}/projects/compiler-rt)
2828
# variable) as in add_llvm_external_project
2929
if(NOT EXISTS ${COMPILER_RT_SRC_ROOT})
3030
# We don't want to set it if LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR is ""
31-
if(${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR})
31+
if(LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR)
3232
set(COMPILER_RT_SRC_ROOT ${LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR})
3333
endif()
3434
endif()

0 commit comments

Comments
 (0)