Skip to content

Commit c6be96b

Browse files
authored
build: GNUInstallDirs should be included before usage of CMAKE_INSTALL_INCLUDEDIR (#424)
1 parent 2eb7784 commit c6be96b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ else()
6565
target_link_libraries(sioclient PRIVATE websocketpp::websocketpp asio asio::asio rapidjson)
6666
endif()
6767

68+
include(GNUInstallDirs)
69+
6870
target_include_directories(sioclient
6971
PUBLIC
7072
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
@@ -121,8 +123,6 @@ endif()
121123

122124
export(PACKAGE sioclient)
123125

124-
include(GNUInstallDirs)
125-
126126
file(GLOB ALL_HEADERS ${CMAKE_CURRENT_LIST_DIR}/src/*.h)
127127
install(FILES ${ALL_HEADERS}
128128
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}

0 commit comments

Comments
 (0)