From d5b2efc9e64183b0c1667981a26776b868af04cb Mon Sep 17 00:00:00 2001 From: Felix Exner Date: Mon, 4 Aug 2025 10:22:51 +0200 Subject: [PATCH] Install endian header on Windows and Apple only --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d26182de..31e09caa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -112,7 +112,12 @@ install(TARGETS urcl EXPORT urcl_targets RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) install(DIRECTORY include/ DESTINATION include) -install(DIRECTORY 3rdparty/endian/ DESTINATION include/${PROJECT_NAME}/3rdparty +if(MSVC OR APPLE) + install(DIRECTORY 3rdparty/endian/ DESTINATION include/${PROJECT_NAME}/3rdparty + FILES_MATCHING PATTERN "*.h" + ) +endif() +install(DIRECTORY 3rdparty/httplib/ DESTINATION include/${PROJECT_NAME}/3rdparty FILES_MATCHING PATTERN "*.h" )