Commit c9bb7fef authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

GIT_SILENT: Fix typo

parent af4046da
Pipeline #44211 skipped
......@@ -107,7 +107,16 @@ add_definitions(-DQT_NO_EMIT)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
option(USE_UNITY_CMAKE_SUPPORT "Use UNITY cmake support (speedup compile time)" FALSE)
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT false)
if (USE_UNITY_CMAKE_SUPPORT)
if(${CMAKE_VERSION} VERSION_LESS "3.16.0")
message(STATUS "CMAKE version is less than 3.16.0 . We can't use cmake unify build support")
else()
set(COMPILE_WITH_UNITY_CMAKE_SUPPORT true)
endif()
endif()
# allow to disable GHNS support on resource-constrained systems
option( ACCOUNTWIZARD_NO_GHNS "Disable GHNS support in the account wizard" FALSE )
......
......@@ -71,9 +71,17 @@ if ( NOT ACCOUNTWIZARD_NO_GHNS )
endif ()
add_executable(accountwizard ${accountwizard_srcs} main.cpp)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(accountwizard PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(accountwizard ${accountwizard_libs} KF5::DBusAddons)
add_library(accountwizard_plugin MODULE ${accountwizard_srcs} inprocess-main.cpp)
if (COMPILE_WITH_UNITY_CMAKE_SUPPORT)
set_target_properties(accountwizard_plugin PROPERTIES UNITY_BUILD ON)
endif()
target_link_libraries(accountwizard_plugin ${accountwizard_libs})
if ( NOT ACCOUNTWIZARD_NO_GHNS )
......
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