File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,17 @@ else()
125
125
set (THIRDPARTY_BUILTIN_freetype "system package" )
126
126
endif ()
127
127
128
- find_package (libunicode QUIET )
129
- if (libunicode_FOUND)
130
- set (THIRDPARTY_BUILTIN_unicode_core "system package (${libunicode_VERSION} )" )
131
- else ()
128
+ set (LIBUNICODE_MINIMAL_VERSION "0.4.0" )
129
+ if (COMMAND ContourThirdParties_Embed_libunicode)
132
130
ContourThirdParties_Embed_libunicode()
131
+ subproject_version(libunicode libunicode_version)
132
+ if (NOT DEFINED libunicode_version OR libunicode_version VERSION_LESS LIBUNICODE_MINIMAL_VERSION)
133
+ message (FATAL_ERROR "Embedded libunicode version must be at least ${LIBUNICODE_MINIMAL_VERSION} , but found ${libunicode_version} " )
134
+ endif ()
133
135
set (THIRDPARTY_BUILTIN_unicode_core "embedded" )
136
+ else ()
137
+ find_package (libunicode ${LIBUNICODE_MINIMAL_VERSION} REQUIRED)
138
+ set (THIRDPARTY_BUILTIN_unicode_core "system package (${libunicode_VERSION} )" )
134
139
endif ()
135
140
136
141
if (LIBTERMINAL_BUILD_BENCH_HEADLESS)
You can’t perform that action at this time.
0 commit comments