diff --git a/modules/sfm/CMakeLists.txt b/modules/sfm/CMakeLists.txt index 2a7869940..4377a6165 100644 --- a/modules/sfm/CMakeLists.txt +++ b/modules/sfm/CMakeLists.txt @@ -9,17 +9,17 @@ find_package(Ceres QUIET) if(NOT Gflags_FOUND) # Ceres find gflags on the own, so separate search isn't necessary find_package(Gflags QUIET) endif() -if(NOT Glog_FOUND) # Ceres find glog on the own, so separate search isn't necessary +if(NOT (Glog_FOUND OR glog_FOUND)) # Ceres find glog on the own, so separate search isn't necessary find_package(Glog QUIET) endif() -if(NOT Gflags_FOUND OR NOT Glog_FOUND) +if(NOT Gflags_FOUND OR NOT (Glog_FOUND OR glog_FOUND)) # try local search scripts list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") if(NOT Gflags_FOUND) find_package(Gflags QUIET) endif() - if(NOT Glog_FOUND) + if(NOT (Glog_FOUND OR glog_FOUND)) find_package(Glog QUIET) endif() endif()