Skip to content

Commit

Permalink
CMakeLists: Fix GNUInstallDirs warning
Browse files Browse the repository at this point in the history
Fix:

 CMake Warning (dev) at /usr/share/cmake-3.18/Modules/GNUInstallDirs.cmake:225 (message):
  Unable to determine default CMAKE_INSTALL_LIBDIR directory because no
  target architecture is known.  Please enable at least one language before
  including GNUInstallDirs.

by moving the include to the end of the file.
  • Loading branch information
mikecrowe committed Jul 21, 2021
1 parent 5e7be04 commit d553f8f
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
@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 3.7.1)

include(GNUInstallDirs)

project(dbus-asio VERSION 1.0.0)

set(HEADER_FILES
Expand Down Expand Up @@ -126,3 +124,5 @@ install(FILES ${CMAKE_BINARY_DIR}/dbus-asio.pc

install(FILES dbus-asio-config.cmake
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/dbus-asio/)

include(GNUInstallDirs)

0 comments on commit d553f8f

Please sign in to comment.