From aa096d7b7add8f34f7359497a16260c7489c797b Mon Sep 17 00:00:00 2001 From: Shane Loretz Date: Wed, 22 Jan 2020 12:01:09 -0800 Subject: [PATCH] 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)