Skip to content

Commit a7d62ba

Browse files
committed
print deprecation warning when GTSAM_SLOW_BUT_CORRECT_EXPMAP is ON
1 parent 9c84537 commit a7d62ba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cmake/HandleGeneralOptions.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ option(GTSAM_TANGENT_PREINTEGRATION "Use new ImuFactor with integration
4949
option(GTSAM_SLOW_BUT_CORRECT_BETWEENFACTOR "Use the slower but correct version of BetweenFactor" OFF)
5050
option(GTSAM_SLOW_BUT_CORRECT_EXPMAP "Use slower but correct expmap for Pose2" ON)
5151

52-
message(WARNING "GTSAM_SLOW_BUT_CORRECT_EXPMAP has been deprecated and will be removed in a future release.")
52+
if (GTSAM_SLOW_BUT_CORRECT_EXPMAP)
53+
message(WARNING "GTSAM_SLOW_BUT_CORRECT_EXPMAP has been deprecated and will be removed in a future release.")
54+
endif()
5355

5456
if (GTSAM_FORCE_SHARED_LIB AND GTSAM_FORCE_STATIC_LIB)
5557
message(FATAL_ERROR "GTSAM_FORCE_SHARED_LIB and GTSAM_FORCE_STATIC_LIB are both true. Please, to unambiguously select the desired library type to use to build GTSAM, set one of GTSAM_FORCE_SHARED_LIB=ON, GTSAM_FORCE_STATIC_LIB=ON, or BUILD_SHARED_LIBS={ON/OFF}")

0 commit comments

Comments
 (0)