Skip to content

Commit 78884dc

Browse files
committed
fix: set CMAKE_POLICY_DEFAULT_CMP0091 globally for all FetchContent subprojects
1 parent f9e1ede commit 78884dc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ endif()
77
project(VEFontCache LANGUAGES C CXX)
88

99
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded")
10+
set(CMAKE_POLICY_DEFAULT_CMP0091 NEW)
1011

1112
set(CMAKE_CXX_STANDARD 20)
1213
set(CMAKE_CXX_STANDARD_REQUIRED ON)
@@ -26,7 +27,6 @@ set(VRHI_VERSION "v0.1.4" CACHE STRING "VRHI release version to fetch")
2627
include(FetchContent)
2728

2829
if(VEFC_ENABLE_FREETYPE)
29-
set(CMAKE_POLICY_DEFAULT_CMP0091 NEW)
3030
FetchContent_Declare(
3131
freetype
3232
GIT_REPOSITORY https://github.com/freetype/freetype.git
@@ -39,7 +39,6 @@ if(VEFC_ENABLE_FREETYPE)
3939
endif()
4040

4141
if(VEFC_ENABLE_HARFBUZZ)
42-
set(CMAKE_POLICY_DEFAULT_CMP0091 NEW)
4342
FetchContent_Declare(
4443
harfbuzz
4544
GIT_REPOSITORY https://github.com/harfbuzz/harfbuzz.git

0 commit comments

Comments
 (0)