Skip to content

Commit 4d5072c

Browse files
committed
🛠 Bad macro
1 parent 09bf054 commit 4d5072c

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

CMakeLists.txt

+3-4
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727
#
2828
# =========================================================================== #
2929

30-
cmake_minimum_required(VERSION 3.21.0)
31-
cmake_policy(VERSION 3.21)
30+
cmake_minimum_required(VERSION 3.28.0)
3231

3332
# # Project kickstart
3433
# Includes a bunch of basic flags and utilities shared across projects
@@ -244,9 +243,9 @@ if (ZTD_CUNEICODE_EXAMPLES OR ZTD_CUNEICODE_SIMDUTF_SHARED)
244243
simdutf
245244
GIT_REPOSITORY https://github.com/simdutf/simdutf
246245
GIT_SHALLOW ON
247-
GIT_TAG master)
246+
GIT_TAG master
247+
EXCLUDE_FROM_ALL)
248248
FetchContent_MakeAvailable(simdutf)
249-
set_property(DIRECTORY "${simdutf_SOURCE_DIR}" PROPERTY EXCLUDE_FROM_ALL YES)
250249
endfunction()
251250
simdutf_dependency_jail()
252251
add_subdirectory(shared)

include/ztd/cuneicode/detail/api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
#define ZTD_CUNEICODE_API_LINKAGE_I_ ZTD_CUNEICODE_API_LINKAGE
6262
#else
6363
#if ZTD_IS_ON(ZTD_CUNEICODE_DLL)
64-
#if ZTD_IS_ON(ZTD_COMPILER_VCXX) || ZTD_IS_ON(ZTD_CUNEICODE_WINDOWS) || ZTD_IS_ON(ZTD_CUNEICODE_CYGWIN)
64+
#if ZTD_IS_ON(ZTD_COMPILER_VCXX) || ZTD_IS_ON(ZTD_PLATFORM_WINDOWS) || ZTD_IS_ON(ZTD_PLATFORM_CYGWIN)
6565
// MSVC Compiler; or, Windows, or Cygwin platforms
6666
#if ZTD_IS_ON(ZTD_CUNEICODE_BUILD)
6767
// Building the library

tests/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ FetchContent_Declare(
3636
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
3737
GIT_SHALLOW ON
3838
GIT_TAG devel
39+
EXCLUDE_FROM_ALL
3940
)
4041
FetchContent_MakeAvailable(catch2)
41-
set_property(DIRECTORY "${catch2_SOURCE_DIR}" PROPERTY EXCLUDE_FROM_ALL YES)
4242

4343
#add_subdirectory(allocation)
4444
add_subdirectory(basic_run_time)

0 commit comments

Comments
 (0)