From c101e83b4ba35535c09a099939597f3523d7dce8 Mon Sep 17 00:00:00 2001 From: Jose Luis Blanco Claraco Date: Sat, 28 Dec 2019 19:22:36 +0100 Subject: [PATCH] Fix cmake policy CMP0054 warning --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c712127ad..c84835d82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -88,7 +88,7 @@ if(NOT MSVC AND NOT XCODE_VERSION) # Set the GTSAM_BUILD_TAG variable. # If build type is Release, set to blank (""), else set to the build type. - if("${CMAKE_BUILD_TYPE_UPPER}" STREQUAL "RELEASE") + if(${CMAKE_BUILD_TYPE_UPPER} STREQUAL "RELEASE") set(GTSAM_BUILD_TAG "") # Don't create release mode tag on installed directory else() set(GTSAM_BUILD_TAG "${CMAKE_BUILD_TYPE}")