diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ef717185..8065f9219 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,15 @@ # ROM Properties Page Shell Extension -CMAKE_MINIMUM_REQUIRED(VERSION 3.4) +CMAKE_MINIMUM_REQUIRED(VERSION 3.5) + +# CMP0048: Set VERSION variables based on the project version specified in PROJECT(). +# Introduced in CMake 3.0. CMAKE_POLICY(SET CMP0048 NEW) +# CMP0063: Honor visibility properties for all target types, +# including static libraries and executables. +# Introduced in CMake 3.3. +CMAKE_POLICY(SET CMP0063 NEW) + # Read the project version. CONFIGURE_FILE(version.txt version.txt.tmp) FILE(STRINGS version.txt RP_VERSION_FILE) diff --git a/src/amiibo-data/CMakeLists.txt b/src/amiibo-data/CMakeLists.txt index 46b44214c..e03d80a28 100644 --- a/src/amiibo-data/CMakeLists.txt +++ b/src/amiibo-data/CMakeLists.txt @@ -1,10 +1,4 @@ # amiibo database data and compiler. -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(amiibo-data LANGUAGES CXX) SET(amiiboc_SRCS amiiboc.cpp) diff --git a/src/gtk/CMakeLists.txt b/src/gtk/CMakeLists.txt index 9df1c8174..08f636541 100644 --- a/src/gtk/CMakeLists.txt +++ b/src/gtk/CMakeLists.txt @@ -1,10 +1,4 @@ # GTK+ UI frontends -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rom-properties-gtk LANGUAGES C CXX) INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/src) diff --git a/src/gtk/gtk3/CMakeLists.txt b/src/gtk/gtk3/CMakeLists.txt index 2e298b21f..2077df4ef 100644 --- a/src/gtk/gtk3/CMakeLists.txt +++ b/src/gtk/gtk3/CMakeLists.txt @@ -3,12 +3,6 @@ # - Caja 1.18 (MATE) # - Nemo (Cinnamon) # - Thunar 1.8 (XFCE) -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rom-properties-gtk3 LANGUAGES C CXX) FIND_PACKAGE(GLib2 ${REQUIRE_GTK3} ${GLIB_MIN_VERSION}) diff --git a/src/gtk/gtk4/CMakeLists.txt b/src/gtk/gtk4/CMakeLists.txt index 6c4ed37de..24b08bde6 100644 --- a/src/gtk/gtk4/CMakeLists.txt +++ b/src/gtk/gtk4/CMakeLists.txt @@ -1,10 +1,4 @@ # GTK4 UI frontend -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rom-properties-gtk4 LANGUAGES C CXX) # GTK4 requires glib-2.66.0. diff --git a/src/gtk/tests/CMakeLists.txt b/src/gtk/tests/CMakeLists.txt index 665c93cd0..b2da308c8 100644 --- a/src/gtk/tests/CMakeLists.txt +++ b/src/gtk/tests/CMakeLists.txt @@ -1,11 +1,5 @@ # GTK UI frontend test suite -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) -PROJECT(gtk-tests LANGUAGES CXX) +PROJECT(gtk-tests LANGUAGES C CXX) # Top-level src directory INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/../..) diff --git a/src/gtk/thumbnailer-dbus/CMakeLists.txt b/src/gtk/thumbnailer-dbus/CMakeLists.txt index 837bae66b..3dd7d1d29 100644 --- a/src/gtk/thumbnailer-dbus/CMakeLists.txt +++ b/src/gtk/thumbnailer-dbus/CMakeLists.txt @@ -1,10 +1,4 @@ # D-Bus Thumbnailer for rom-properties -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rp-thumbnailer-dbus LANGUAGES C) # Find packages. diff --git a/src/gtk/xfce/CMakeLists.txt b/src/gtk/xfce/CMakeLists.txt index 47f431f9c..6a39d67ad 100644 --- a/src/gtk/xfce/CMakeLists.txt +++ b/src/gtk/xfce/CMakeLists.txt @@ -1,11 +1,5 @@ # GTK+ 2.x UI frontend for: # - Thunar 1.6 (XFCE) -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rom-properties-xfce LANGUAGES C CXX) # Disable glib deprecation warnings. diff --git a/src/kde/CMakeLists.txt b/src/kde/CMakeLists.txt index 8f731637d..155c5ea37 100644 --- a/src/kde/CMakeLists.txt +++ b/src/kde/CMakeLists.txt @@ -1,10 +1,4 @@ # KDE (Qt) UI frontends -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rom-properties-kde LANGUAGES CXX) # Common files for all KDE versions. diff --git a/src/kde/kde4/CMakeLists.txt b/src/kde/kde4/CMakeLists.txt index 97ca29263..e63fa41cc 100644 --- a/src/kde/kde4/CMakeLists.txt +++ b/src/kde/kde4/CMakeLists.txt @@ -1,10 +1,4 @@ # KDE 4.x UI frontend -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rom-properties-kde4 LANGUAGES CXX) # Find Qt4 and KDE4. diff --git a/src/kde/kf5/CMakeLists.txt b/src/kde/kf5/CMakeLists.txt index 619bf0e21..3629d9f71 100644 --- a/src/kde/kf5/CMakeLists.txt +++ b/src/kde/kf5/CMakeLists.txt @@ -1,10 +1,4 @@ # KDE Frameworks 5.x UI frontend -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rom-properties-kf5 LANGUAGES CXX) # Find Qt5 and KF5. diff --git a/src/kde/kf6/CMakeLists.txt b/src/kde/kf6/CMakeLists.txt index 1961c22be..72d8f2cc6 100644 --- a/src/kde/kf6/CMakeLists.txt +++ b/src/kde/kf6/CMakeLists.txt @@ -1,10 +1,4 @@ # KDE Frameworks 6.x UI frontend -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rom-properties-kf6 LANGUAGES CXX) # Find Qt6 and KF6. diff --git a/src/kde/tests/CMakeLists.txt b/src/kde/tests/CMakeLists.txt index bf984e51c..90fce995a 100644 --- a/src/kde/tests/CMakeLists.txt +++ b/src/kde/tests/CMakeLists.txt @@ -1,10 +1,4 @@ # KDE UI frontend test suite -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(kde-tests LANGUAGES CXX) # Top-level src directory diff --git a/src/libcachecommon/CMakeLists.txt b/src/libcachecommon/CMakeLists.txt index 9ad462dde..7625899fe 100644 --- a/src/libcachecommon/CMakeLists.txt +++ b/src/libcachecommon/CMakeLists.txt @@ -1,10 +1,4 @@ # Common cache management functions used by both Cache Manager and rp-download. -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(cachecommon LANGUAGES CXX) SET(${PROJECT_NAME}_SRCS diff --git a/src/libcachecommon/tests/CMakeLists.txt b/src/libcachecommon/tests/CMakeLists.txt index 8d7991137..c4281ceb6 100644 --- a/src/libcachecommon/tests/CMakeLists.txt +++ b/src/libcachecommon/tests/CMakeLists.txt @@ -1,10 +1,4 @@ # libcachecommon test suite -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(libcachecommon-tests LANGUAGES CXX) # Top-level src directory. diff --git a/src/libi18n/CMakeLists.txt b/src/libi18n/CMakeLists.txt index bb0870ac5..0f33d0aa0 100644 --- a/src/libi18n/CMakeLists.txt +++ b/src/libi18n/CMakeLists.txt @@ -1,10 +1,4 @@ # Internationalization support code. -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(i18n LANGUAGES C) # NOTE: This subdirectory is always built, even if NLS is disabled, diff --git a/src/libromdata/CMakeLists.txt b/src/libromdata/CMakeLists.txt index 82fe03dae..38e9a4d01 100644 --- a/src/libromdata/CMakeLists.txt +++ b/src/libromdata/CMakeLists.txt @@ -1,10 +1,4 @@ # RomData subclasses and factory class. -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(romdata LANGUAGES CXX) IF(NOT WIN32) diff --git a/src/libromdata/tests/CMakeLists.txt b/src/libromdata/tests/CMakeLists.txt index b3d9c480e..8bb5b9b5e 100644 --- a/src/libromdata/tests/CMakeLists.txt +++ b/src/libromdata/tests/CMakeLists.txt @@ -1,10 +1,4 @@ # libromdata test suite -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(libromdata-tests LANGUAGES C CXX) # Current binary directory for config.libromdata-tests.h diff --git a/src/librpbase/CMakeLists.txt b/src/librpbase/CMakeLists.txt index 657379fcf..4dd4cd6aa 100644 --- a/src/librpbase/CMakeLists.txt +++ b/src/librpbase/CMakeLists.txt @@ -1,10 +1,4 @@ # rom-properties base library -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rpbase LANGUAGES C CXX) IF(NOT WIN32) diff --git a/src/librpbase/tests/CMakeLists.txt b/src/librpbase/tests/CMakeLists.txt index 1f39eb9dc..6f5bbfc88 100644 --- a/src/librpbase/tests/CMakeLists.txt +++ b/src/librpbase/tests/CMakeLists.txt @@ -1,10 +1,4 @@ # librpbase test suite -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(librpbase-tests LANGUAGES CXX) # Top-level src directory. diff --git a/src/librpcpu/CMakeLists.txt b/src/librpcpu/CMakeLists.txt index 81811d8e6..e91431617 100644 --- a/src/librpcpu/CMakeLists.txt +++ b/src/librpcpu/CMakeLists.txt @@ -1,10 +1,4 @@ # rom-properties CPU support library -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rpcpu LANGUAGES C) # Check for C headers. diff --git a/src/librpfile/CMakeLists.txt b/src/librpfile/CMakeLists.txt index 3a25eaecd..fb414f2b0 100644 --- a/src/librpfile/CMakeLists.txt +++ b/src/librpfile/CMakeLists.txt @@ -1,10 +1,4 @@ # rom-properties file handling library -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rpfile LANGUAGES CXX) # Check for C library functions. diff --git a/src/librpsecure/CMakeLists.txt b/src/librpsecure/CMakeLists.txt index 23a0c7806..911ea867d 100644 --- a/src/librpsecure/CMakeLists.txt +++ b/src/librpsecure/CMakeLists.txt @@ -1,10 +1,4 @@ # Security functionality -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rpsecure LANGUAGES C) OPTION(ENABLE_EXTRA_SECURITY "Enable extra security functionality if available." ON) diff --git a/src/librptext/CMakeLists.txt b/src/librptext/CMakeLists.txt index 692022238..2303d07b8 100644 --- a/src/librptext/CMakeLists.txt +++ b/src/librptext/CMakeLists.txt @@ -1,10 +1,4 @@ # rom-properties base library -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rptext LANGUAGES C CXX) IF(NOT WIN32) diff --git a/src/librptext/tests/CMakeLists.txt b/src/librptext/tests/CMakeLists.txt index 7d4b3c6b7..7d01f337b 100644 --- a/src/librptext/tests/CMakeLists.txt +++ b/src/librptext/tests/CMakeLists.txt @@ -1,10 +1,4 @@ # librptext test suite -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(librpbase-tests LANGUAGES CXX) # Top-level src directory. diff --git a/src/librptexture/CMakeLists.txt b/src/librptexture/CMakeLists.txt index 031cb9d86..d728ba58b 100644 --- a/src/librptexture/CMakeLists.txt +++ b/src/librptexture/CMakeLists.txt @@ -1,10 +1,4 @@ # rom-properties texture decoding library -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rptexture LANGUAGES CXX) # OpenMP (TODO: AUTO/ON/OFF?) diff --git a/src/librptexture/tests/CMakeLists.txt b/src/librptexture/tests/CMakeLists.txt index 1c7214951..1e8c0920f 100644 --- a/src/librptexture/tests/CMakeLists.txt +++ b/src/librptexture/tests/CMakeLists.txt @@ -1,10 +1,4 @@ # librptexture test suite -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(librptexture-tests LANGUAGES CXX) # Top-level src directory. diff --git a/src/librpthreads/CMakeLists.txt b/src/librpthreads/CMakeLists.txt index 090aba530..4b2987617 100644 --- a/src/librpthreads/CMakeLists.txt +++ b/src/librpthreads/CMakeLists.txt @@ -1,10 +1,4 @@ # Threading wrapper library -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rpthreads LANGUAGES C CXX) # Find the system threading library. diff --git a/src/libunixcommon/CMakeLists.txt b/src/libunixcommon/CMakeLists.txt index 936568651..063efe9fd 100644 --- a/src/libunixcommon/CMakeLists.txt +++ b/src/libunixcommon/CMakeLists.txt @@ -1,10 +1,4 @@ # Unix and Unix-like systems common code -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) # FIXME: CMake-3.15.5 on travis-ci can't find Objective-C... PROJECT(unixcommon LANGUAGES C CXX) diff --git a/src/libwin32common/CMakeLists.txt b/src/libwin32common/CMakeLists.txt index 6fe1802b0..73045146d 100644 --- a/src/libwin32common/CMakeLists.txt +++ b/src/libwin32common/CMakeLists.txt @@ -1,10 +1,4 @@ # Windows common code -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(win32common LANGUAGES C CXX) ### NOTE: DelayLoadHelper should NOT be compiled here. diff --git a/src/libwin32darkmode/CMakeLists.txt b/src/libwin32darkmode/CMakeLists.txt index afae02660..2b90a738b 100644 --- a/src/libwin32darkmode/CMakeLists.txt +++ b/src/libwin32darkmode/CMakeLists.txt @@ -1,12 +1,5 @@ # Win32 dark mode # https://github.com/ysc3839/win32-darkmode -CMAKE_MINIMUM_REQUIRED(VERSION 3.0) -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(win32darkmode LANGUAGES CXX) # Sources and headers. diff --git a/src/libwin32ui/CMakeLists.txt b/src/libwin32ui/CMakeLists.txt index 3ce1f3649..a66f015a7 100644 --- a/src/libwin32ui/CMakeLists.txt +++ b/src/libwin32ui/CMakeLists.txt @@ -1,10 +1,4 @@ # Windows UI common code -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(win32ui LANGUAGES C CXX) # Check for Windows SDK headers. diff --git a/src/rp-download/CMakeLists.txt b/src/rp-download/CMakeLists.txt index 66744900b..41c4b7fd5 100644 --- a/src/rp-download/CMakeLists.txt +++ b/src/rp-download/CMakeLists.txt @@ -1,10 +1,4 @@ # Online downloader program for external images -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rp-download LANGUAGES C CXX) IF(NOT WIN32) diff --git a/src/rp-stub/CMakeLists.txt b/src/rp-stub/CMakeLists.txt index d18f49adb..acad9bdcd 100644 --- a/src/rp-stub/CMakeLists.txt +++ b/src/rp-stub/CMakeLists.txt @@ -1,10 +1,4 @@ # Stub executable for Unix and Unix-like thumbnailers -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rp-stub LANGUAGES C) # rp-stub diff --git a/src/rpcli/CMakeLists.txt b/src/rpcli/CMakeLists.txt index 7758d4380..c66864885 100644 --- a/src/rpcli/CMakeLists.txt +++ b/src/rpcli/CMakeLists.txt @@ -1,10 +1,4 @@ # Command line interface -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rpcli LANGUAGES C CXX) # Sources and headers. diff --git a/src/svrplus/CMakeLists.txt b/src/svrplus/CMakeLists.txt index e2549a38e..436234308 100644 --- a/src/svrplus/CMakeLists.txt +++ b/src/svrplus/CMakeLists.txt @@ -1,10 +1,4 @@ # Windows DLL registration frontend -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(svrplus LANGUAGES C) # Create the manifest file. diff --git a/src/win32/CMakeLists.txt b/src/win32/CMakeLists.txt index 5eaea2335..dccb4e6b7 100644 --- a/src/win32/CMakeLists.txt +++ b/src/win32/CMakeLists.txt @@ -1,10 +1,4 @@ # Windows UI frontend -CMAKE_POLICY(SET CMP0048 NEW) -IF(POLICY CMP0063) - # CMake 3.3: Enable symbol visibility presets for all - # target types, including static libraries and executables. - CMAKE_POLICY(SET CMP0063 NEW) -ENDIF(POLICY CMP0063) PROJECT(rom-properties LANGUAGES C CXX) # Check for Windows SDK headers and symbols.