Skip to content

Commit e04cbd7

Browse files
committed
Only install singleheader/simdjson.h as part of the public API
1 parent fa4ce6a commit e04cbd7

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

include/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,3 @@ target_include_directories(simdjson-headers INTERFACE
1111
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCDIR}>)
1212

1313
install(TARGETS simdjson-headers EXPORT simdjson-config INCLUDES DESTINATION include)
14-
install(DIRECTORY simdjson DESTINATION include FILES_MATCHING PATTERN *.h)
15-
install(DIRECTORY simdjson DESTINATION include FILES_MATCHING PATTERN *.hpp)
16-
install(FILES simdjson.h DESTINATION include)

singleheader/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ if (MSVC)
3030
)
3131
endif()
3232

33-
else(MSVC)
33+
else(MSVC)
3434

3535
##
3636
# Important! The script amalgamate.sh is not generally executable. It
@@ -72,7 +72,6 @@ else(MSVC)
7272
# "make amalgamate" to generate the header files directly and update the original source
7373
#
7474
add_custom_target(amalgamate DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/simdjson.cpp ${CMAKE_CURRENT_SOURCE_DIR}/simdjson.h ${CMAKE_CURRENT_SOURCE_DIR}/amalgamate_demo.cpp ${CMAKE_CURRENT_SOURCE_DIR}/README.md)
75-
7675
endif(MSVC)
7776

7877

@@ -96,3 +95,5 @@ add_dependencies(simdjson-singleheader-source amalgamate)
9695
add_executable(amalgamate_demo $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/amalgamate_demo.cpp>)
9796
target_link_libraries(amalgamate_demo simdjson-singleheader-include-source simdjson-flags)
9897
add_test(amalgamate_demo amalgamate_demo ${EXAMPLE_JSON} ${EXAMPLE_NDJSON})
98+
99+
install(FILES simdjson.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

0 commit comments

Comments
 (0)