Skip to content

Cannot success build using Cmake Fecth_Content #230

@18521344596

Description

@18521344596

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?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions