mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-02 01:20:25 +08:00
Windows: removed yaml_cpp required if pkgconfig is installed
This commit is contained in:
@@ -5,10 +5,12 @@ FIND_PACKAGE(yaml-cpp QUIET)
|
||||
IF(NOT yaml-cpp_FOUND)
|
||||
find_package(PkgConfig QUIET)
|
||||
IF(PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(yaml_cpp REQUIRED yaml-cpp)
|
||||
SET(YAML_CPP_LIBRARIES ${yaml_cpp_LIBRARIES})
|
||||
SET(YAML_CPP_INCLUDE_DIRS ${yaml_cpp_INCLUDEDIR})
|
||||
SET(yaml-cpp_FOUND ${yaml_cpp_FOUND})
|
||||
pkg_check_modules(yaml_cpp QUIET yaml-cpp)
|
||||
IF(yaml_cpp_FOUND)
|
||||
SET(YAML_CPP_LIBRARIES ${yaml_cpp_LIBRARIES})
|
||||
SET(YAML_CPP_INCLUDE_DIRS ${yaml_cpp_INCLUDEDIR})
|
||||
SET(yaml-cpp_FOUND ${yaml_cpp_FOUND})
|
||||
ENDIF(yaml_cpp_FOUND)
|
||||
ENDIF(PKG_CONFIG_FOUND)
|
||||
ENDIF(NOT yaml-cpp_FOUND)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user