File tree 4 files changed +17
-9
lines changed
4 files changed +17
-9
lines changed Original file line number Diff line number Diff line change @@ -42,12 +42,12 @@ include(${PROJECT_SOURCE_DIR}/tests/add_cpp_test.cmake)
42
42
#
43
43
# These tests explicitly do #include "simdjson.cpp" so they can override stuff
44
44
#
45
- if ( NOT MSVC ) # Can't get simdjson-source to compile on Windows for some reason.
46
- add_cpp_test (numberparsingcheck LABELS acceptance per_implementation )
47
- target_link_libraries (numberparsingcheck simdjson- include - source )
48
- add_cpp_test(stringparsingcheck LABELS acceptance per_implementation)
49
- target_link_libraries (stringparsingcheck simdjson-include -source )
50
- endif ( )
45
+ add_cpp_test(numberparsingcheck LABELS acceptance per_implementation)
46
+ target_link_libraries (numberparsingcheck simdjson- include - source simdjson-windows-headers )
47
+ target_compile_definitions (numberparsingcheck PRIVATE NOMINMAX )
48
+ add_cpp_test(stringparsingcheck LABELS acceptance per_implementation)
49
+ target_link_libraries (stringparsingcheck simdjson-include -source simdjson-windows-headers )
50
+ target_compile_definitions (stringparsingcheck PRIVATE NOMINMAX )
51
51
52
52
# All remaining tests link with simdjson proper
53
53
link_libraries (simdjson)
Original file line number Diff line number Diff line change 1
1
#include < cstring>
2
- #include < dirent.h>
3
2
#include < inttypes.h>
4
3
#include < math.h>
5
4
#include < stdbool.h>
10
9
#define JSON_TEST_NUMBERS
11
10
#endif
12
11
12
+ #ifndef _MSC_VER
13
+ #include < dirent.h>
14
+ #else
15
+ #include < dirent_portable.h>
16
+ #endif
13
17
#include " simdjson.h"
14
18
15
19
// ulp distance
Original file line number Diff line number Diff line change 1
1
#include < cassert>
2
2
#include < climits>
3
3
#include < cstring>
4
- #include < dirent.h>
5
4
#include < inttypes.h>
6
5
#include < iostream>
7
6
#include < math.h>
13
12
#define JSON_TEST_STRINGS
14
13
#endif
15
14
15
+ #ifndef _MSC_VER
16
+ #include < dirent.h>
17
+ #else
18
+ #include < dirent_portable.h>
19
+ #endif
16
20
#include " simdjson.h"
17
21
18
22
char *fullpath;
Original file line number Diff line number Diff line change 1
1
add_library (simdjson-windows-headers INTERFACE )
2
2
if (MSVC )
3
3
target_include_directories (simdjson-windows-headers INTERFACE .)
4
- endif ()
4
+ endif ()
You can’t perform that action at this time.
0 commit comments