Properly EXCLUDE_FROM_ALL the testing support library
authorPavel Labath <pavel@labath.sk>
Wed, 21 Aug 2019 08:21:51 +0000 (08:21 +0000)
committerPavel Labath <pavel@labath.sk>
Wed, 21 Aug 2019 08:21:51 +0000 (08:21 +0000)
The EXCLUDE_FROM_ALL variable is used by add_llvm_library, but lldb does
not use that function (it uses llvm_add_library :P). Instead, set the directory
property with the same name directly.

This should fix standalone builds against an llvm install tree.

llvm-svn: 369502

lldb/unittests/TestingSupport/CMakeLists.txt

index 922025d..7efe6f5 100644 (file)
@@ -1,4 +1,4 @@
-set(EXCLUDE_FROM_ALL ON)
+set_property(DIRECTORY PROPERTY EXCLUDE_FROM_ALL ON)
 add_lldb_library(lldbUtilityHelpers
   MockTildeExpressionResolver.cpp
   TestUtilities.cpp