My libconfig.cmake is as belows:
message("include libconfig")
# Set build options
set(BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
include(FetchContent)
FetchContent_Declare(
libconfig
GIT_REPOSITORY https://github.com/hyperrealm/libconfig.git
)
FetchContent_MakeAvailable(libconfig)
It seems downloads the src successfully but cannot build successfully unfortunately.
How to solve this issue?