llvm.org GIT mirror llvm / 7921d70
[CMake] Fixing LLVM_INCLUDE_TESTS for runtimes directory We need to explicitly pass LLVM_INCLUDE_TESTS through from the top-level to the runtimes configuration because it isn't in LLVMConfig.cmake git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279857 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Bieneman 3 years ago
1 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
8585 DEPENDS ${RUNTIMES_LIT_DEPENDS}
8686 ARGS ${RUNTIMES_LIT_EXTRA_ARGS}
8787 )
88 add_custom_target(test-depends-runtimes DEPENDS ${RUNTIMES_LIT_DEPENDS})
88 add_custom_target(runtimes-test-depends DEPENDS ${RUNTIMES_LIT_DEPENDS})
8989 endif()
9090
9191 get_property(SUB_COMPONENTS GLOBAL PROPERTY SUB_COMPONENTS)
150150 check-${runtime_name})
151151 endforeach()
152152
153 if(LLVM_INCLUDE_TESTS)
154 set(test_targets runtimes-test-depends check-runtimes)
155 endif()
156
153157 # Create a runtimes target that uses this file as its top-level CMake file.
154158 # The runtimes target is a configuration of all the runtime libraries
155159 # together in a single CMake invocaiton.
158162 DEPENDS ${deps}
159163 # Builtins were built separately above
160164 CMAKE_ARGS -DCOMPILER_RT_BUILD_BUILTINS=Off
165 -DLLVM_INCLUDE_TESTS=${LLVM_INCLUDE_TESTS}
161166 PASSTHROUGH_PREFIXES ${prefixes}
162167 EXTRA_TARGETS ${extra_targets}
163 test-depends-runtimes
164 check-runtimes
168 ${test_targets}
165169 ${SUB_COMPONENTS}
166170 ${SUB_INSTALL_TARGETS}
167171 USE_TOOLCHAIN)
168 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_DEPENDS test-depends-runtimes)
169
172 if(LLVM_INCLUDE_TESTS)
173 set_property(GLOBAL APPEND PROPERTY LLVM_LIT_DEPENDS runtimes-test-depends)
174 endif()
170175 endif()
171176 endif()