Browse Source

Update CMakeLists.txt

Fixed LLVM link issues
M0N7Y5 1 year ago
parent
commit
a66a9a1acb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      IDEHelper/CMakeLists.txt

+ 2 - 1
IDEHelper/CMakeLists.txt

@@ -177,7 +177,8 @@ if (LLVM_FOUND)
   include_directories(${LLVM_INCLUDE_DIRS})
   add_definitions(${LLVM_DEFINITIONS})
 
-  set(STRIP ${TARGET_LIBS_OS} "-lLLVM-18 ${LLVM_SYSTEM_LIBS}")
+  string(APPEND TARGET_LIBS_OS "-lLLVM-18 ${LLVM_SYSTEM_LIBS}")
+  string(STRIP ${TARGET_LIBS_OS} TARGET_LIBS_OS)
 else()
   message(FATAL_ERROR "LLVM not found")
 endif()