Skip to content

Commit b50faf7

Browse files
committed
Disable CRT warnings on all jsrc targets
1 parent 86b3a85 commit b50faf7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

jsrc/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
if(WIN32)
2+
add_compile_definitions(_CRT_SECURE_NO_WARNINGS)
3+
endif()
4+
15
add_library(j)
26
target_compile_definitions(j PRIVATE C_NA=0 C_AVX=1 C_AVX2=1 EMU_AVX=1)
3-
target_compile_definitions(j PRIVATE $<$<PLATFORM_ID:Windows>:_CRT_SECURE_NO_WARNINGS>)
47
target_link_libraries(j PRIVATE ${STANDARD_MATH_LIBRARY})
58
set_source_files_properties(aes-ni.c PROPERTIES COMPILE_FLAGS -maes)
69
target_sources(j PRIVATE
@@ -220,7 +223,6 @@ endif()
220223

221224
add_library(linenoise OBJECT EXCLUDE_FROM_ALL)
222225
target_compile_definitions(linenoise INTERFACE USE_LINENOISE)
223-
target_compile_definitions(linenoise PUBLIC $<$<PLATFORM_ID:Windows>:_CRT_SECURE_NO_WARNINGS>)
224226
target_sources(linenoise PRIVATE
225227
linenoise.h
226228
linenoise.c

0 commit comments

Comments
 (0)