Skip to content

Commit 3b5a558

Browse files
committed
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
2 parents da967e0 + 7a8c959 commit 3b5a558

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/sfm/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ if(NOT DEFINED GFLAGS_INCLUDE_DIRS AND DEFINED GFLAGS_INCLUDE_DIR)
2929
endif()
3030
if(NOT GFLAGS_LIBRARIES AND TARGET gflags::gflags)
3131
set(GFLAGS_LIBRARIES gflags::gflags)
32+
elseif(NOT GFLAGS_LIBRARIES AND TARGET gflags)
33+
set(GFLAGS_LIBRARIES gflags)
3234
endif()
3335
if(NOT DEFINED GLOG_INCLUDE_DIRS AND DEFINED GLOG_INCLUDE_DIR)
3436
set(GLOG_INCLUDE_DIRS "${GLOG_INCLUDE_DIR}")

0 commit comments

Comments
 (0)