X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=CMakeLists.txt;h=f5ca78035d6e8466e5d80a628a4235ed761daa60;hb=dd711790dddee81442e2138b3917764dac39c487;hp=7268dac1a805597f73133de59f8f2be3fa4c542a;hpb=0cdc3bdc397e5d9b45fecb682f0de73d47f9e228;p=quassel.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 7268dac1..f5ca7803 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -131,6 +131,11 @@ if (CMAKE_MAJOR_VERSION GREATER 2) cmake_policy(SET CMP0043 OLD) endif() +# Honor visibility settings for all target types +if (CMAKE_VERSION VERSION_GREATER 3.3) + cmake_policy(SET CMP0063 NEW) +endif() + # Simplify later checks ##################################################################### @@ -231,7 +236,7 @@ if (USE_QT5) PURPOSE "Enable support for the snorenotify framework" ) endif() - + if (WITH_WEBKIT) find_package(Qt5WebKit QUIET) @@ -575,7 +580,7 @@ endif() include(GetGitRevisionDescription) get_git_head_revision(GIT_REFSPEC GIT_HEAD) -git_describe(GIT_DESCRIBE --long) +git_describe(GIT_DESCRIBE --long --dirty) # If not in a Git repo try to read GIT_HEAD and GIT_DESCRIBE from # enviroment