Skip to content

Commit

Permalink
Merge pull request #284 from satmandu/patch-1
Browse files Browse the repository at this point in the history
Allow for alternate libdir detection in linux
  • Loading branch information
oschwald authored Dec 6, 2021
2 parents e5a4093 + 4def8ec commit fab6c20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ endif()
option(BUILD_SHARED_LIBS "Build shared libraries (.dll/.so) instead of static ones (.lib/.a)" OFF)
option(BUILD_TESTING "Build test programs" ON)

include(GNUInstallDirs)

include(CheckTypeSize)
check_type_size("unsigned __int128" UINT128)
check_type_size("unsigned int __attribute__((mode(TI)))" UINT128_USING_MODE)
Expand Down Expand Up @@ -93,7 +95,7 @@ install(TARGETS maxminddb
install(EXPORT maxminddb
FILE maxminddb-config.cmake
NAMESPACE maxminddb::
DESTINATION lib/cmake/maxminddb)
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/maxminddb)

# We always want to build mmdblookup
add_subdirectory(bin)
Expand Down

0 comments on commit fab6c20

Please sign in to comment.