Commit b554c49a authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Limit building local KDev::Tests library for KF5 only when kdevplatform library has been found

This fixes a CI build error in case kdevplatform development package was not installed

CCMAIL:cfeck@kde.org
CCBUG:415849
parent bbd9d8c9
......@@ -103,9 +103,6 @@ find_package(KF5 REQUIRED COMPONENTS
if(BUILD_PHP_IMPORT)
find_package(KDevelop-PG-Qt)
find_package(KDevPlatform ${KDEV_MIN_VERSION} COMPONENTS ${KDEV_COMPONENTS})
if(BUILD_KF5)
add_subdirectory(lib/kdevplatform)
endif()
endif()
if(KDEVPGQT_FOUND AND KDEVPLATFORM_FOUND)
message(STATUS "requirements available - enable building php code import")
......@@ -122,6 +119,7 @@ if(KDEVPGQT_FOUND AND KDEVPLATFORM_FOUND)
-DKDEVPHPPARSER_EXPORT=
-DENABLE_PHP_IMPORT
)
add_subdirectory(lib/kdevplatform)
add_subdirectory(${KDEV_SOURCE_DIR})
else()
set(BUILD_PHP_IMPORT 0)
......
add_library(KDevTests STATIC tests/testcore.cpp tests/autotestshell.cpp)
target_include_directories(KDevTests PUBLIC tests)
target_link_libraries(KDevTests
PUBLIC
KDev::Shell
#KDev::Language
#KDev::Project
#KDev::Debugger
PRIVATE
)
if (BUILD_KF5)
add_library(KDevTests STATIC tests/testcore.cpp tests/autotestshell.cpp)
target_include_directories(KDevTests PUBLIC tests)
target_link_libraries(KDevTests
PUBLIC
KDev::Shell
#KDev::Language
#KDev::Project
#KDev::Debugger
PRIVATE
)
add_library(KDev::Tests ALIAS KDevTests)
add_library(KDev::Tests ALIAS KDevTests)
endif()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment