build: specify CONFIG for find_package(indentlog)

This commit is contained in:
Roland Conybeare 2023-09-26 15:48:17 -04:00
commit 8c9b541e7d

View file

@ -72,6 +72,7 @@ endmacro()
# ----------------------------------------------------------------
# use this for a subdir that builds a library
# and supports find_package()
#
macro(xo_install_library target)
install(
@ -89,7 +90,7 @@ endmacro()
# use this when relying on indentlog [[https://github.com/rconybea/indentlog]] headers
#
macro(xo_indentlog_dependency target)
find_package(indentlog REQUIRED)
find_package(indentlog CONFIG REQUIRED)
#add_dependencies(${target} indentlog)
target_link_libraries(${target} PUBLIC indentlog)
#target_include_directories(${target} PUBLIC ${indentlog_DIR}/../../../include)