Skip to content

Commit 9d0a451

Browse files
authored
Merge pull request #3296 from gvcallen:4.x
Allow new glog in SFM CMake Project * Allow new glog in SFM CMakeLists.txt * Fix typo * Fixed missing bracket
1 parent 940d910 commit 9d0a451

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/sfm/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ find_package(Ceres QUIET)
99
if(NOT Gflags_FOUND) # Ceres find gflags on the own, so separate search isn't necessary
1010
find_package(Gflags QUIET)
1111
endif()
12-
if(NOT Glog_FOUND) # Ceres find glog on the own, so separate search isn't necessary
12+
if(NOT (Glog_FOUND OR glog_FOUND)) # Ceres find glog on the own, so separate search isn't necessary
1313
find_package(Glog QUIET)
1414
endif()
1515

16-
if(NOT Gflags_FOUND OR NOT Glog_FOUND)
16+
if(NOT Gflags_FOUND OR NOT (Glog_FOUND OR glog_FOUND))
1717
# try local search scripts
1818
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
1919
if(NOT Gflags_FOUND)
2020
find_package(Gflags QUIET)
2121
endif()
22-
if(NOT Glog_FOUND)
22+
if(NOT (Glog_FOUND OR glog_FOUND))
2323
find_package(Glog QUIET)
2424
endif()
2525
endif()

0 commit comments

Comments
 (0)