aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Rostecki <mrostecki@suse.de>2018-10-24 14:27:52 +0200
committerMichal Rostecki <mrostecki@suse.de>2018-10-24 14:27:52 +0200
commitfa16f72f4354eba27c8e182a033608298b8e60e5 (patch)
tree8f1ff5984d296bbf809e0f0f5353d33b9890b82c
parent01097873c8d708a1efff7b253a6914a036258bd1 (diff)
downloadnanopb-c-fa16f72f4354eba27c8e182a033608298b8e60e5.tar.gz
cmake: Include CMAKE_INSTALL_LIBDIR in CMAKE_INSTALL_CMAKEDIR
If user defines non-standard directory in CMAKE_INSTALL_LIBDIR option (i.e. /usr/lib64), then CMAKE_INSTALL_CMAKEDIR should use it as a prefix.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index deb9eec..fd4ade4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,7 +31,7 @@ if(MSVC AND nanopb_MSVC_STATIC_RUNTIME)
endif()
if(NOT DEFINED CMAKE_INSTALL_CMAKEDIR)
- set(CMAKE_INSTALL_CMAKEDIR "lib/cmake/nanopb")
+ set(CMAKE_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/nanopb")
endif()
if(nanopb_BUILD_GENERATOR)