Skip to content

Commit

Permalink
Merge pull request #3296 from gvcallen:4.x
Browse files Browse the repository at this point in the history
Allow new glog in SFM CMake Project

* Allow new glog in SFM CMakeLists.txt

* Fix typo

* Fixed missing bracket
  • Loading branch information
gvcallen authored Jun 30, 2022
1 parent 940d910 commit 9d0a451
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/sfm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9d0a451

Please sign in to comment.