From 030ec88a184c74b7c19bef04e9e2aa0431462193 Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Wed, 22 Jan 2020 12:01:09 -0800 Subject: [PATCH 1/2] Use CMP0048 New behavior CMP0048 NEW behavior sets PROJECT_VERSION variables to empty strings if project() is called with no VERSION argument. This could be a problem for packages that set VERSION variables prior to project() because project() would then clear them, but catkin does not do this. Signed-off-by: Shane Loretz --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8256b4cf5..1204df67d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,5 @@ cmake_minimum_required(VERSION 2.8.3) +cmake_policy(SET CMP0048 NEW) set(catkin_EXTRAS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cmake) From 93061193d8b73b7084926bca2f0ef00ea2aaef2e Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Wed, 22 Jan 2020 14:01:53 -0800 Subject: [PATCH 2/2] try raising the minimum CMake version instead --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1204df67d..a22596b1b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,4 @@ -cmake_minimum_required(VERSION 2.8.3) -cmake_policy(SET CMP0048 NEW) +cmake_minimum_required(VERSION 3.0.2) set(catkin_EXTRAS_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cmake)