This repository was archived by the owner on Aug 1, 2022. It is now read-only.
File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,10 @@ set_target_properties(pthread_workqueue PROPERTIES DEBUG_POSTFIX "d")
118
118
if (WIN32 )
119
119
target_compile_definitions (pthread_workqueue PRIVATE
120
120
LIBPTHREAD_WORKQUEUE_EXPORTS;_USRDLL;_WINDLL)
121
+ target_compile_definitions (pthread_workqueue
122
+ PRIVATE
123
+ _CRT_SECURE_NO_WARNINGS
124
+ _CRT_SECURE_NO_WARNINGS_GLOBALS)
121
125
else ()
122
126
target_compile_definitions (pthread_workqueue PRIVATE
123
127
_XOPEN_SOURCE=600;_GNU_SOURCE)
Original file line number Diff line number Diff line change 2
2
#define _PTWQ_WINDOWS_PLATFORM_H 1
3
3
4
4
#define PROVIDE_LEGACY_XP_SUPPORT 1
5
- #define _CRT_SECURE_NO_WARNINGS
6
5
#pragma warning(disable : 4996)
7
6
8
7
#ifdef PROVIDE_LEGACY_XP_SUPPORT
Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ function(ADD_UNIT_TEST TEST)
29
29
PRIVATE
30
30
${CMAKE_SOURCE_DIR}
31
31
${CMAKE_SOURCE_DIR} /include )
32
+ if (WIN32 )
33
+ target_compile_definitions (test_${TEST} _pthread_workqueue
34
+ PRIVATE
35
+ _CRT_SECURE_NO_WARNINGS)
36
+ endif ()
32
37
target_link_libraries (test_${TEST} _pthread_workqueue
33
38
PRIVATE
34
39
pthread_workqueue)
You can’t perform that action at this time.
0 commit comments