mirror of
https://github.com/lvgl/lvgl.git
synced 2026-08-17 18:22:42 +08:00
build(cmake): don't override fetchcontent base dir if it's already defined by the user (#10234)
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
include(FetchContent)
|
||||
|
||||
set(FETCHCONTENT_BASE_DIR
|
||||
"${CMAKE_SOURCE_DIR}/.deps"
|
||||
CACHE PATH "Directory for fetched dependencies" FORCE)
|
||||
if(NOT DEFINED FETCHCONTENT_BASE_DIR)
|
||||
set(FETCHCONTENT_BASE_DIR
|
||||
"${CMAKE_SOURCE_DIR}/.deps"
|
||||
CACHE PATH "Directory for fetched dependencies" FORCE)
|
||||
endif()
|
||||
|
||||
find_package(PkgConfig)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user