File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ add_library(TSCBasic
49
49
Thread.swift
50
50
Tuple.swift
51
51
misc.swift )
52
+ target_compile_options (TSCBasic PUBLIC
53
+ # Don't use GNU strerror_r on Android.
54
+ "$<$<PLATFORM_ID:Android>:SHELL:-Xcc -U_GNU_SOURCE>"
55
+ # Ignore secure function warnings on Windows.
56
+ "$<$<PLATFORM_ID:Windows>:SHELL:-Xcc -D_CRT_SECURE_NO_WARNINGS>" )
52
57
target_link_libraries (TSCBasic PUBLIC
53
58
TSCLibc )
54
59
if (NOT CMAKE_SYSTEM_NAME STREQUAL Darwin )
@@ -67,9 +72,4 @@ install(TARGETS TSCBasic
67
72
RUNTIME DESTINATION bin )
68
73
endif ()
69
74
70
- # Don't use GNU strerror_r on Android.
71
- if (CMAKE_SYSTEM_NAME STREQUAL Android )
72
- target_compile_options (TSCBasic PUBLIC "SHELL:-Xcc -U_GNU_SOURCE" )
73
- endif ()
74
-
75
75
set_property (GLOBAL APPEND PROPERTY TSC_EXPORTS TSCBasic )
You can’t perform that action at this time.
0 commit comments