build: specify CONFIG for find_package(indentlog)
This commit is contained in:
parent
8e1b51c96f
commit
8c9b541e7d
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue