Skip to content

Commit

Permalink
Disable nested FetchContent on standalone builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Epixu committed Sep 19, 2023
1 parent 00a76a4 commit c043ddb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ project(LangulusCore
HOMEPAGE_URL https://langulus.com
)

# Disable the FetchContent requests for langulus libraries from here on
set(LANGULUS ON CACHE INTERNAL
"Defines the build tree as a part of Langulus, \
thus prevents the downloading of base Langulus libraries. \
They should be in the build tree already" FORCE
)

add_library(LangulusCore INTERFACE)
target_compile_features(LangulusCore INTERFACE cxx_std_20)
target_include_directories(LangulusCore INTERFACE source)
Expand Down

0 comments on commit c043ddb

Please sign in to comment.