From c6be96b226f0fe3853beaeaa99c06834342a78db Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Sat, 6 Apr 2024 04:50:12 +0800 Subject: [PATCH] build: GNUInstallDirs should be included before usage of CMAKE_INSTALL_INCLUDEDIR (#424) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a9c69d59..e9a417b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,6 +65,8 @@ else() target_link_libraries(sioclient PRIVATE websocketpp::websocketpp asio asio::asio rapidjson) endif() +include(GNUInstallDirs) + target_include_directories(sioclient PUBLIC $ @@ -121,8 +123,6 @@ endif() export(PACKAGE sioclient) -include(GNUInstallDirs) - file(GLOB ALL_HEADERS ${CMAKE_CURRENT_LIST_DIR}/src/*.h) install(FILES ${ALL_HEADERS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}