mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Fix cmake error from CeresConfig.cmake when Ceres not found
Change-Id: I944c950ecfcb23d4c49b2b4f98852a99913f2f8b
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user