Fix cmake policy CMP0054 warning

release/4.3a0
Jose Luis Blanco Claraco 2019-12-28 19:22:36 +01:00
parent c5681d8e59
commit c101e83b4b
No known key found for this signature in database
GPG Key ID: D443304FBD70A641
1 changed files with 1 additions and 1 deletions

View File

@ -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}")