CMake 3.3+ changed behavior for handling visibility for target types
other than dynamic libraries. This commit adds a cmake_policy call
to allow the new behavior, removing a dev warning in the process.
(cherry picked from commit
ea83d86631bc3fa82a2b9a8f415c2424a8bc1a2a)
cmake_policy(SET CMP0043 OLD)
endif()
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
#####################################################################
# Simplify later checks
#####################################################################
PURPOSE "Enable support for the snorenotify framework"
)
endif()
PURPOSE "Enable support for the snorenotify framework"
)
endif()
if (WITH_WEBKIT)
find_package(Qt5WebKit QUIET)
if (WITH_WEBKIT)
find_package(Qt5WebKit QUIET)