Skip to content

Commit 45404e8

Browse files
authored
Install endian header on Windows and Apple only (#372)
Installing it also on Linux may lead to the compiler finding the wrong implementation.
1 parent e5ad64d commit 45404e8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ install(TARGETS urcl EXPORT urcl_targets
112112
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
113113
)
114114
install(DIRECTORY include/ DESTINATION include)
115-
install(DIRECTORY 3rdparty/endian/ DESTINATION include/${PROJECT_NAME}/3rdparty
115+
if(MSVC OR APPLE)
116+
install(DIRECTORY 3rdparty/endian/ DESTINATION include/${PROJECT_NAME}/3rdparty
117+
FILES_MATCHING PATTERN "*.h"
118+
)
119+
endif()
120+
install(DIRECTORY 3rdparty/httplib/ DESTINATION include/${PROJECT_NAME}/3rdparty
116121
FILES_MATCHING PATTERN "*.h"
117122
)
118123

0 commit comments

Comments
 (0)