diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2018-02-06 12:54:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 12:54:46 -0500 |
commit | 4493cea016abae37174a3b51e8e9b51aad4f65a4 (patch) | |
tree | c53c9681a54ece02c6bcda3f4f14f1edf8fb138a /templates | |
parent | 007f1197ac6376cd6a77dca141966ba3aceec9aa (diff) | |
parent | 5e9cfd9a99df31febf31f4aa1d0da9efa1e83e32 (diff) |
Merge pull request #14019 from hacst/cmake-export-fix
Fix cmake export for grpc
Diffstat (limited to 'templates')
-rw-r--r-- | templates/CMakeLists.txt.template | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template index de0f2eb328..c279bef51f 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -77,10 +77,10 @@ set(PACKAGE_BUGREPORT "https://github.com/grpc/grpc/issues/") project(<%text>${PACKAGE_NAME}</%text> C CXX) - set(gRPC_INSTALL_BINDIR "<%text>${CMAKE_INSTALL_PREFIX}</%text>/bin" CACHE PATH "Installation directory for executables") - set(gRPC_INSTALL_LIBDIR "<%text>${CMAKE_INSTALL_PREFIX}</%text>/lib" CACHE PATH "Installation directory for libraries") - set(gRPC_INSTALL_INCLUDEDIR "<%text>${CMAKE_INSTALL_PREFIX}</%text>/include" CACHE PATH "Installation directory for headers") - set(gRPC_INSTALL_CMAKEDIR "<%text>${CMAKE_INSTALL_PREFIX}/lib/cmake/${PACKAGE_NAME}</%text>" CACHE PATH "Installation directory for cmake config files") + set(gRPC_INSTALL_BINDIR "bin" CACHE STRING "Installation directory for executables") + set(gRPC_INSTALL_LIBDIR "lib" CACHE STRING "Installation directory for libraries") + set(gRPC_INSTALL_INCLUDEDIR "include" CACHE STRING "Installation directory for headers") + set(gRPC_INSTALL_CMAKEDIR "lib/cmake/<%text>${PACKAGE_NAME}</%text>" CACHE STRING "Installation directory for cmake config files") # Options option(gRPC_BUILD_TESTS "Build tests" OFF) |