CMake: don't install yyjson

Fix #474
This commit is contained in:
李通洲
2023-06-14 17:36:24 +08:00
parent 257a97ed55
commit 592ff603ca
+6 -2
View File
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.14.0) # target_link_libraries with OBJECT libs & project homepage url & FetchContent
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url & FetchContent
project(fastfetch
VERSION 1.11.3
@@ -46,7 +46,11 @@ FetchContent_Declare(
GIT_REPOSITORY https://github.com/ibireme/yyjson
GIT_TAG 0.7.0
)
FetchContent_MakeAvailable(yyjson)
FetchContent_GetProperties(yyjson)
if(NOT yyjson_POPULATED)
FetchContent_Populate(yyjson)
add_subdirectory(${yyjson_SOURCE_DIR} ${yyjson_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
#####################
# Configure options #