File tree 1 file changed +5
-1
lines changed
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,11 @@ if (LLVM_ENABLE_PROJECTS_USED OR NOT LLVM_ENABLE_PROJECTS STREQUAL "")
95
95
if (NOT EXISTS "${PROJ_DIR} " OR NOT IS_DIRECTORY "${PROJ_DIR} " )
96
96
message (FATAL_ERROR "LLVM_ENABLE_PROJECTS requests ${proj} but directory not found: ${PROJ_DIR} " )
97
97
endif ()
98
- set (LLVM_EXTERNAL_${upper_proj} _SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../${proj} " CACHE STRING "" )
98
+ if ( LLVM_EXTERNAL_${upper_proj} _SOURCE_DIR STREQUAL "" )
99
+ set (LLVM_EXTERNAL_${upper_proj} _SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../${proj} " CACHE PATH "" FORCE)
100
+ else ()
101
+ set (LLVM_EXTERNAL_${upper_proj} _SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR} /../${proj} " CACHE PATH "" )
102
+ endif ()
99
103
elseif ("${proj} " IN_LIST LLVM_EXTERNAL_PROJECTS)
100
104
message (STATUS "${proj} project is enabled" )
101
105
set (SHOULD_ENABLE_PROJECT TRUE )
You can’t perform that action at this time.
0 commit comments