[CMake] Fix logic error: NOT LIBCLANG_BUILD_STATIC does not imply PIC
authorDavid Zarzycki <dave@znu.io>
Sun, 26 Apr 2020 11:02:32 +0000 (07:02 -0400)
committerDavid Zarzycki <dave@znu.io>
Sun, 26 Apr 2020 11:16:42 +0000 (07:16 -0400)
clang/tools/libclang/CMakeLists.txt

index bb2b14c..9368501 100644 (file)
@@ -77,7 +77,7 @@ if(MSVC)
   set(LLVM_EXPORTED_SYMBOL_FILE)
 endif()
 
-if(LLVM_ENABLE_PIC OR NOT LIBCLANG_BUILD_STATIC)
+if(LLVM_ENABLE_PIC)
   set(ENABLE_SHARED SHARED)
 endif()