Skip to content

Commit 7169750

Browse files
committed
Fix wrong install path of header in Cmake
All the examples show <httplib.h> but this was putting it in <httplib/httplib.h> So this fixes that to be as expected, in the root of the include dir. Ref #421
1 parent a7b90da commit 7169750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ install(TARGETS ${PROJECT_NAME} EXPORT httplibConfig
6464
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
6565
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
6666

67-
install(FILES httplib.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME})
6867

6968
install(EXPORT httplibConfig DESTINATION share/httplib/cmake)
69+
install(FILES httplib.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
7070

7171
export(TARGETS ${PROJECT_NAME} FILE httplibConfig.cmake)
7272

0 commit comments

Comments
 (0)