Add missing dependency.

This commit is contained in:
Vassil Vassilev 2019-03-16 23:27:52 +02:00 committed by SFT
parent daeaa6d9fb
commit 1cb36481ba
2 changed files with 6 additions and 1 deletions

View File

@ -463,7 +463,6 @@ if (TARGET clang-headers)
endif()
add_subdirectory(lib)
add_subdirectory(tools)
if( CLING_INCLUDE_TESTS )
add_subdirectory(test)
@ -485,6 +484,8 @@ if( CLING_INCLUDE_TESTS )
endif()
endif()
add_subdirectory(tools)
option(CLING_INCLUDE_DOCS "Generate build targets for the Cling docs."
${LLVM_INCLUDE_DOCS})
if( CLING_INCLUDE_DOCS )

View File

@ -7,6 +7,10 @@
#-------------------------------------------------------------------------------
add_cling_library(clingDemoPlugin SHARED DemoPlugin.cpp)
if (TARGET check-cling)
# Make sure if we are running the testsuite to build clingDemoPlugin before.
add_dependencies(check-cling clingDemoPlugin)
endif()
set_target_properties(clingDemoPlugin PROPERTIES LIBRARY_OUTPUT_DIRECTORY ".")
if(APPLE)