X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=9037c89b42840c35a93bf25fb87b65979c28c377;hp=9f4e235663ebc61ae8f3233287e24d091b7b7e0a;hb=3128dab675247b8505937b0bc22b4e2ad2dd61ff;hpb=0fcf6adf1ca3a256bd0e5c1db40507874b9d65a8 diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f4e2356..9037c89b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,6 +107,7 @@ if (NOT EMBED_DEFAULT) endif() # The following options are not for end-user consumption, so don't list them in the feature summary +option(FATAL_WARNINGS "Make compile warnings fatal (most useful for CI builds)" OFF) cmake_dependent_option(DEPLOY "Add required libs to bundle resources and create a dmg" OFF "APPLE" OFF) # List of authenticators and the cmake flags to build them @@ -334,6 +335,14 @@ set_package_properties(Boost PROPERTIES TYPE REQUIRED URL "https://www.boost.org/" DESCRIPTION "Boost libraries for C++" ) +# Older versions don't define the imported target +if (NOT TARGET Boost::boost) + add_library(Boost::boost INTERFACE IMPORTED GLOBAL) + if (Boost_INCLUDE_DIRS) + set_target_properties(Boost::boost PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${Boost_INCLUDE_DIRS}") + endif() +endif() find_package(ZLIB REQUIRED) set_package_properties(ZLIB PROPERTIES TYPE REQUIRED