hyperrealm / libconfig

C/C++ library for processing configuration files
https://hyperrealm.github.io/libconfig/
GNU Lesser General Public License v2.1
1.1k stars 359 forks source link

Cannot success build using Cmake Fecth_Content #230

Open 18521344596 opened 1 year ago

18521344596 commented 1 year ago

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?

tkrypton commented 1 year ago

Hard to say without seeing the error message...