[LLDB] Only set FRAMEWORK when we're actually building a framework.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 12 Nov 2019 23:42:07 +0000 (15:42 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 12 Nov 2019 23:42:07 +0000 (15:42 -0800)
lldb/source/API/CMakeLists.txt

index 488dae3..934bbf2 100644 (file)
@@ -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