1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-17 07:04:18 +08:00

sfm: Fix linking with gflags 2.2.2

https://github.com/gflags/gflags/pull/259
This commit is contained in:
مهدي شينون (Mehdi Chinoune)
2022-03-29 12:00:54 +01:00
committed by Mehdi Chinoune
parent ef5a7e8286
commit 9901f16732

View File

@@ -29,6 +29,8 @@ if(NOT DEFINED GFLAGS_INCLUDE_DIRS AND DEFINED GFLAGS_INCLUDE_DIR)
endif()
if(NOT GFLAGS_LIBRARIES AND TARGET gflags::gflags)
set(GFLAGS_LIBRARIES gflags::gflags)
elseif(NOT GFLAGS_LIBRARIES AND TARGET gflags)
set(GFLAGS_LIBRARIES gflags)
endif()
if(NOT DEFINED GLOG_INCLUDE_DIRS AND DEFINED GLOG_INCLUDE_DIR)
set(GLOG_INCLUDE_DIRS "${GLOG_INCLUDE_DIR}")