Commit 5e68a93c authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Only depend on SysGuard if building standalone KSysGuard

parent b4a46fd5
......@@ -33,11 +33,14 @@ find_package(KF5 CONFIG REQUIRED COMPONENTS
Config
Init
IconThemes
SysGuard
Plasma
KDE4Support #for SensorDisplay.cpp
)
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
find_package(KF5 CONFIG REQUIRED COMPONENTS SysGuard)
endif()
find_package(Sensors)
set_package_properties(Sensors PROPERTIES
TYPE OPTIONAL
......@@ -56,4 +59,3 @@ add_subdirectory( pics )
add_subdirectory( example )
add_subdirectory( ksysguardd )
Markdown is supported
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