Fix cmake error from CeresConfig.cmake when Ceres not found

Change-Id: I944c950ecfcb23d4c49b2b4f98852a99913f2f8b
This commit is contained in:
Taylor Braun-Jones
2017-07-06 09:31:30 -04:00
parent c8202e6926
commit e6c14a4e3c
+1 -1
View File
@@ -84,7 +84,7 @@ macro(CERES_REPORT_NOT_FOUND REASON_MSG)
# FindPackage() use the camelcase library name, not uppercase.
if (Ceres_FIND_QUIETLY)
message(STATUS "Failed to find Ceres - " ${REASON_MSG} ${ARGN})
else (Ceres_FIND_REQUIRED)
elseif (Ceres_FIND_REQUIRED)
message(FATAL_ERROR "Failed to find Ceres - " ${REASON_MSG} ${ARGN})
else()
# Neither QUIETLY nor REQUIRED, use SEND_ERROR which emits an error