Windows: removed yaml_cpp required if pkgconfig is installed

This commit is contained in:
matlabbe
2018-08-07 20:34:46 -04:00
parent 7f09a9e0cb
commit f281db8dd0

View File

@@ -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)