cmake_minimum_required( VERSION 3.20 )

# cparse is a Conan package now (was a git submodule). find_package(cparse) runs
# in the root CMakeLists; here we only publish the include root the rest of the
# fson tree expects in ${CPARSE_MODULE_DIR} to resolve "cparse/<Name>.hh".
if(NOT TARGET cparse::cparse)
    message(FATAL_ERROR "cparse target missing — run `conan install` first")
endif()

get_target_property(_cparse_incs cparse::cparse INTERFACE_INCLUDE_DIRECTORIES)
set(CPARSE_MODULE_DIR "${_cparse_incs}" CACHE INTERNAL
    "Include root that resolves \"cparse/<Name>.hh\"")
