Skip to content

Commit

Permalink
build: GNUInstallDirs should be included before usage of CMAKE_INSTAL…
Browse files Browse the repository at this point in the history
…L_INCLUDEDIR (#424)
  • Loading branch information
ruslo authored Apr 5, 2024
1 parent 2eb7784 commit c6be96b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ else()
target_link_libraries(sioclient PRIVATE websocketpp::websocketpp asio asio::asio rapidjson)
endif()

include(GNUInstallDirs)

target_include_directories(sioclient
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit c6be96b

Please sign in to comment.