Skip to content

Commit

Permalink
Debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tobim committed Oct 30, 2023
1 parent 093eac6 commit 6c81774
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions share/cmake/modules/Findyaml-cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ endif()
if(yaml-cpp_FIND_QUIETLY)
set(quiet QUIET)
endif()
set(quiet QUIET)

if(NOT OCIO_INSTALL_EXT_PACKAGES STREQUAL ALL)

Expand Down Expand Up @@ -72,7 +73,7 @@ if(NOT OCIO_INSTALL_EXT_PACKAGES STREQUAL ALL)
if(NOT PC_yaml-cpp_FOUND)
pkg_search_module(PC_yaml-cpp ${quiet} "yaml-cpp")
endif()

# Find include directory
find_path(yaml-cpp_INCLUDE_DIR
NAMES
Expand All @@ -97,7 +98,7 @@ if(NOT OCIO_INSTALL_EXT_PACKAGES STREQUAL ALL)
# Prefer static lib names
set(_yaml-cpp_STATIC_LIB_NAMES
"${CMAKE_STATIC_LIBRARY_PREFIX}yaml-cpp${CMAKE_STATIC_LIBRARY_SUFFIX}")

# Starting from 0.7.0, all platforms uses the suffix "d" for debug.
# See https://github.com/jbeder/yaml-cpp/blob/master/CMakeLists.txt#L141
if(BUILD_TYPE_DEBUG)
Expand Down Expand Up @@ -145,6 +146,13 @@ endif()

set(YAML_CPP_LIBRARIES yaml-cpp::yaml-cpp)

include(CMakePrintHelpers)
cmake_print_variables(
yaml-cpp_INCLUDE_DIR
yaml-cpp_LIBRARY
yaml-cpp_VERSION
)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(yaml-cpp
REQUIRED_VARS
Expand Down

0 comments on commit 6c81774

Please sign in to comment.