File tree Expand file tree Collapse file tree 5 files changed +3104
-8822
lines changed Expand file tree Collapse file tree 5 files changed +3104
-8822
lines changed Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.5.1)
22cmake_policy (SET CMP0069 NEW)
33
4- project (llhttp VERSION 6 .0.11 )
4+ project (llhttp VERSION 9 .0.0 )
55include (GNUInstallDirs)
66
77set (CMAKE_C_STANDARD 99)
@@ -47,8 +47,9 @@ configure_file(
4747function (config_library target )
4848 target_sources (${target} PRIVATE ${LLHTTP_SOURCES} ${LLHTTP_HEADERS} )
4949
50- target_include_directories (${target} PRIVATE
51- ${CMAKE_CURRENT_SOURCE_DIR} /include
50+ target_include_directories (${target} PUBLIC
51+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
52+ $<INSTALL_INTERFACE:include >
5253 )
5354
5455 set_target_properties (${target} PROPERTIES
@@ -72,9 +73,10 @@ function(config_library target)
7273
7374 # This is required to work with FetchContent
7475 install (EXPORT llhttp
75- FILE llhttp-config.cmake
76- NAMESPACE llhttp::
77- DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/llhttp)
76+ FILE llhttp-config.cmake
77+ NAMESPACE llhttp::
78+ DESTINATION ${CMAKE_INSTALL_LIBDIR} /cmake/llhttp
79+ )
7880endfunction (config_library target )
7981
8082if (BUILD_SHARED_LIBS )
You can’t perform that action at this time.
0 commit comments