Skip to content

Commit f89ac8d

Browse files
committed
Moved inclusion of GNUInstallDirs closer to top. We would need the variables defined there earlier in the script. Added a variable for path to architecture-independent libs.
1 parent 564f672 commit f89ac8d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ set(CPACK_DEBIAN_PACKAGE_MAINTAINER "${CPACK_PACKAGE_MAINTAINER}")
4242
set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt")
4343
set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.adoc")
4444

45+
include(GNUInstallDirs)
46+
string(REPLACE "/${CMAKE_LIBRARY_ARCHITECTURE}" "" INSTALL_LIBDIR_ARCHIND "${CMAKE_INSTALL_LIBDIR}")
47+
4548
# Simple INTERFACE, and header only, library target.
4649
add_library( lyra INTERFACE )
4750

@@ -59,8 +62,6 @@ add_library( bfg::lyra ALIAS lyra )
5962
set(PkgConfigTemplatesDir "${CMAKE_CURRENT_SOURCE_DIR}/data/pkgconfig")
6063

6164
## Installation Code
62-
include(GNUInstallDirs)
63-
6465
include(CMakePackageConfigHelpers)
6566
configure_package_config_file(
6667
${PROJECT_SOURCE_DIR}/data/cmake/lyraConfig.cmake.in

0 commit comments

Comments
 (0)