Revision: 77622
http://sourceforge.net/p/brlcad/code/77622
Author: starseeker
Date: 2020-10-23 22:10:05 +0000 (Fri, 23 Oct 2020)
Log Message:
-----------
Quiet some CMake policy warnings.
Modified Paths:
--------------
brlcad/branches/extbuild/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/bson/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/gdal/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/itcl3/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/itk3/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/iwidgets/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/netpbm/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/openscenegraph/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/perplex/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/png/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/proj-4/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/regex/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/stepcode/CMakeLists.txt
brlcad/branches/extbuild/src/other/ext/zlib/CMakeLists.txt
Modified: brlcad/branches/extbuild/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/CMakeLists.txt 2020-10-23 22:03:26 UTC (rev
77621)
+++ brlcad/branches/extbuild/CMakeLists.txt 2020-10-23 22:10:05 UTC (rev
77622)
@@ -44,6 +44,18 @@
# set CMake project name
project(BRLCAD)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
+# Test name character check - need to look into this one...
+if (POLICY CMP0110)
+ cmake_policy(SET CMP0110 OLD)
+endif (POLICY CMP0110)
+
#---------------------------------------------------------------------
# CMake derives much of its functionality from modules, typically
# stored in one directory - let CMake know where to find them. If we
Modified: brlcad/branches/extbuild/src/other/ext/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/CMakeLists.txt 2020-10-23
22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/CMakeLists.txt 2020-10-23
22:10:05 UTC (rev 77622)
@@ -30,6 +30,13 @@
cmake_minimum_required(VERSION 3.12)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
# Find the executable extension, if there is one
get_filename_component(EXE_EXT "${CMAKE_COMMAND}" EXT)
Modified: brlcad/branches/extbuild/src/other/ext/bson/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/bson/CMakeLists.txt 2020-10-23
22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/bson/CMakeLists.txt 2020-10-23
22:10:05 UTC (rev 77622)
@@ -1,5 +1,12 @@
cmake_minimum_required(VERSION 3.12)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
project (libbson)
include(CheckFunctionExists)
Modified: brlcad/branches/extbuild/src/other/ext/gdal/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/gdal/CMakeLists.txt 2020-10-23
22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/gdal/CMakeLists.txt 2020-10-23
22:10:05 UTC (rev 77622)
@@ -40,6 +40,13 @@
# Set CMake project name
project(GDAL)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
if(NOT MSVC OR "${MSVC_VERSION}" GREATER 1700)
set(CMAKE_CXX_STANDARD 11)
endif(NOT MSVC OR "${MSVC_VERSION}" GREATER 1700)
Modified: brlcad/branches/extbuild/src/other/ext/itcl3/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/itcl3/CMakeLists.txt 2020-10-23
22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/itcl3/CMakeLists.txt 2020-10-23
22:10:05 UTC (rev 77622)
@@ -42,6 +42,13 @@
# set CMake project name
project(ITCL)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
find_package(TCL)
Modified: brlcad/branches/extbuild/src/other/ext/itk3/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/itk3/CMakeLists.txt 2020-10-23
22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/itk3/CMakeLists.txt 2020-10-23
22:10:05 UTC (rev 77622)
@@ -42,6 +42,13 @@
# set CMake project name
project(ITK)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake")
find_package(TCL REQUIRED)
Modified: brlcad/branches/extbuild/src/other/ext/iwidgets/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/iwidgets/CMakeLists.txt
2020-10-23 22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/iwidgets/CMakeLists.txt
2020-10-23 22:10:05 UTC (rev 77622)
@@ -38,6 +38,13 @@
project(IWIDGETS)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
if(NOT DEFINED LIB_DIR)
set(LIB_DIR lib)
endif(NOT DEFINED LIB_DIR)
Modified: brlcad/branches/extbuild/src/other/ext/netpbm/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/netpbm/CMakeLists.txt
2020-10-23 22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/netpbm/CMakeLists.txt
2020-10-23 22:10:05 UTC (rev 77622)
@@ -39,6 +39,13 @@
# set CMake project name
project(NETPBM)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
if (NOT BIN_DIR)
set(BIN_DIR bin)
endif (NOT BIN_DIR)
Modified: brlcad/branches/extbuild/src/other/ext/openscenegraph/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/openscenegraph/CMakeLists.txt
2020-10-23 22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/openscenegraph/CMakeLists.txt
2020-10-23 22:10:05 UTC (rev 77622)
@@ -15,6 +15,13 @@
CMAKE_MINIMUM_REQUIRED(VERSION 3.12.0 FATAL_ERROR)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
if(COMMAND cmake_policy)
# Works around warnings libraries linked against that don't
# have absolute paths (e.g. -lpthreads)
Modified: brlcad/branches/extbuild/src/other/ext/perplex/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/perplex/CMakeLists.txt
2020-10-23 22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/perplex/CMakeLists.txt
2020-10-23 22:10:05 UTC (rev 77622)
@@ -3,6 +3,13 @@
# set project name
project(CITRUS)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
Modified: brlcad/branches/extbuild/src/other/ext/png/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/png/CMakeLists.txt 2020-10-23
22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/png/CMakeLists.txt 2020-10-23
22:10:05 UTC (rev 77622)
@@ -20,6 +20,13 @@
cmake_minimum_required(VERSION 3.12)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
project(libpng C)
enable_testing()
Modified: brlcad/branches/extbuild/src/other/ext/proj-4/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/proj-4/CMakeLists.txt
2020-10-23 22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/proj-4/CMakeLists.txt
2020-10-23 22:10:05 UTC (rev 77622)
@@ -14,6 +14,13 @@
# proj4 is an ANSI C project
project(PROJ4 C)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
#################################################################################
set(PROJ_VERSION_MAJOR 4)
set(PROJ_VERSION_MINOR 9)
Modified: brlcad/branches/extbuild/src/other/ext/regex/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/regex/CMakeLists.txt 2020-10-23
22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/regex/CMakeLists.txt 2020-10-23
22:10:05 UTC (rev 77622)
@@ -39,6 +39,13 @@
cmake_minimum_required(VERSION 3.12)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}
Modified: brlcad/branches/extbuild/src/other/ext/stepcode/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/stepcode/CMakeLists.txt
2020-10-23 22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/stepcode/CMakeLists.txt
2020-10-23 22:10:05 UTC (rev 77622)
@@ -40,6 +40,16 @@
project(SC)
+# Minimum required version of CMake
+cmake_minimum_required(VERSION 3.12)
+
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
# SC version
SET(SC_VERSION_MAJOR 0)
if(NOT SC_IS_SUBBUILD)
@@ -54,9 +64,6 @@
SET(SC_ABI_SOVERSION 2)
SET(SC_ABI_VERSION ${SC_ABI_SOVERSION}.0.0)
-# Minimum required version of CMake
-cmake_minimum_required(VERSION 3.12)
-
IF( NOT DEFINED INCLUDE_INSTALL_DIR )
SET( INCLUDE_INSTALL_DIR include )
ENDIF( NOT DEFINED INCLUDE_INSTALL_DIR )
Modified: brlcad/branches/extbuild/src/other/ext/zlib/CMakeLists.txt
===================================================================
--- brlcad/branches/extbuild/src/other/ext/zlib/CMakeLists.txt 2020-10-23
22:03:26 UTC (rev 77621)
+++ brlcad/branches/extbuild/src/other/ext/zlib/CMakeLists.txt 2020-10-23
22:10:05 UTC (rev 77622)
@@ -3,6 +3,13 @@
project(zlib C)
+# install(CODE) uses generator expressions - requires 3.14 or newer.
+# We want it to be on, but until we can bump our minimum requirement
+# set it to OLD to make sure we don't break anything.
+if (POLICY CMP0087)
+ cmake_policy(SET CMP0087 OLD)
+endif (POLICY CMP0087)
+
set(VERSION "1.2.11")
if(NOT DEFINED BUILD_SHARED_LIBS)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits