We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3944899 commit df9f4fdCopy full SHA for df9f4fd
cpp/src/arrow/CMakeLists.txt
@@ -757,6 +757,14 @@ if(TARGET simdjson::simdjson)
757
endif()
758
759
message(STATUS "simdjson: ARROW_SIMDJSON_HEADER_ONLY=${ARROW_SIMDJSON_HEADER_ONLY}")
760
+
761
+ # When using header-only mode, add the compile definition at the directory level
762
+ # to ensure all translation units that include simdjson.h get the definition.
763
+ # This is more robust than relying solely on target_compile_definitions propagation,
764
+ # which can have issues with OBJECT libraries on some platforms (e.g., Windows MSVC).
765
+ if(ARROW_SIMDJSON_HEADER_ONLY)
766
+ add_compile_definitions(SIMDJSON_HEADER_ONLY)
767
+ endif()
768
769
770
#
0 commit comments