Quote variable so it works on Windows

release/4.3a0
Varun Agrawal 2020-07-10 00:19:54 -04:00
parent b1dda699a3
commit 10a131fc36
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ add_library(gtsam ${gtsam_srcs})
target_link_libraries(gtsam PUBLIC ${GTSAM_BOOST_LIBRARIES})
target_link_libraries(gtsam PUBLIC ${GTSAM_ADDITIONAL_LIBRARIES})
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
# Suppress warnings if Release build
target_compile_options(gtsam PRIVATE -w)
endif()