Skip to content

Commit 7a8c959

Browse files
committed
Merge pull request #3217 from MehdiChinoune:patch-1
2 parents ef5a7e8 + 9901f16 commit 7a8c959

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)