[Lldb-commits] [lldb] 056c319 - [LLDB] Only set FRAMEWORK when we're actually building a framework.

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 12 15:42:39 PST 2019


Author: Jonas Devlieghere
Date: 2019-11-12T15:42:07-08:00
New Revision: 056c3197694881379cb75a3cb1bd6a511d044714

URL: https://github.com/llvm/llvm-project/commit/056c3197694881379cb75a3cb1bd6a511d044714
DIFF: https://github.com/llvm/llvm-project/commit/056c3197694881379cb75a3cb1bd6a511d044714.diff

LOG: [LLDB] Only set FRAMEWORK when we're actually building a framework.

Added: 
    

Modified: 
    lldb/source/API/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/lldb/source/API/CMakeLists.txt b/lldb/source/API/CMakeLists.txt
index 488dae3cae34..934bbf2ec1b0 100644
--- a/lldb/source/API/CMakeLists.txt
+++ b/lldb/source/API/CMakeLists.txt
@@ -11,9 +11,10 @@ endif()
 
 if(LLDB_BUILD_FRAMEWORK)
   set(option_install_prefix INSTALL_PREFIX ${LLDB_FRAMEWORK_INSTALL_DIR})
+  set(option_framework FRAMEWORK)
 endif()
 
-add_lldb_library(liblldb SHARED FRAMEWORK
+add_lldb_library(liblldb SHARED ${option_framework}
   SBAddress.cpp
   SBAttachInfo.cpp
   SBBlock.cpp


        


More information about the lldb-commits mailing list