Skip to content

Commit d85eec0

Browse files
hahnjovgvassilev
authored andcommitted
Only include AddLLVM / HandleLLVMOptions when standalone
This avoids resetting compiler flags that the surrounding project already took care of.
1 parent d3baf8a commit d85eec0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,10 +274,10 @@ endif()
274274
set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib${LLVM_LIBDIR_SUFFIX})
275275

276276
set( CPPINTEROP_BUILT_STANDALONE 1 )
277-
endif()
278277

279-
include(AddLLVM)
280-
include(HandleLLVMOptions)
278+
include(AddLLVM)
279+
include(HandleLLVMOptions)
280+
endif()
281281

282282
set(CMAKE_INCLUDE_CURRENT_DIR ON)
283283

0 commit comments

Comments
 (0)