Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit c723b47

Browse files
authored
Merge pull request #16 from gottesmm/gtest_include_fix
[cmake] Move the including of utils/unittests under LLVM_INCLUDE_UTIL…
2 parents dec022e + fba2108 commit c723b47

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CMakeLists.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -656,17 +656,14 @@ if( LLVM_INCLUDE_UTILS )
656656
add_subdirectory(utils/not)
657657
add_subdirectory(utils/llvm-lit)
658658
add_subdirectory(utils/yaml-bench)
659+
add_subdirectory(utils/unittest)
659660
else()
660661
if ( LLVM_INCLUDE_TESTS )
661662
message(FATAL_ERROR "Including tests when not building utils will not work.
662663
Either set LLVM_INCLUDE_UTILS to On, or set LLVM_INCLDE_TESTS to Off.")
663664
endif()
664665
endif()
665666

666-
if(LLVM_INCLUDE_TESTS)
667-
add_subdirectory(utils/unittest)
668-
endif()
669-
670667
foreach( binding ${LLVM_BINDINGS_LIST} )
671668
if( EXISTS "${LLVM_MAIN_SRC_DIR}/bindings/${binding}/CMakeLists.txt" )
672669
add_subdirectory(bindings/${binding})

0 commit comments

Comments
 (0)