forked from qt-creator/qt-creator
Build: Fix condition when looking for yaml-cpp
Amends 18386c7117
Fixes: QTCREATORBUG-31497
Change-Id: I70337332f9547fd252e63a5cf551fb3153cf4cf2
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -10,7 +10,7 @@ find_package(yaml-cpp 0.5 QUIET NO_MODULE)
|
||||
if (yaml-cpp_FOUND)
|
||||
# target doesn't set include directory for some reason
|
||||
get_filename_component(yaml_cpp_include_dir "${YAML_CPP_INCLUDE_DIR}" ABSOLUTE)
|
||||
if (NOT EXISTS yaml_cpp_include_dir)
|
||||
if (NOT EXISTS ${yaml_cpp_include_dir})
|
||||
unset(yaml_cpp_include_dir)
|
||||
unset(yaml_cpp_include_dir CACHE)
|
||||
find_path(yaml_cpp_include_dir yaml-cpp/yaml.h)
|
||||
|
Reference in New Issue
Block a user