diff options
author | Taku Kudo <taku910@users.noreply.github.com> | 2020-08-24 04:48:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 04:48:24 +0300 |
commit | cd754b3524cd507be9c796a2bd4ac85c9f33fbf6 (patch) | |
tree | 994b4bd6c78a38108d21599ebca7eaa0f30cc191 | |
parent | c6f08932757a4f39d013be12f86e1f6251022214 (diff) | |
parent | ee11f1f8420c8a79cf3b071949304815484d84b5 (diff) |
Merge pull request #530 from aaronpburke/fix-cmake-install
Install sentencepiece.pc from CMAKE_CURRENT_BINARY_DIR
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6481dfd..9124f9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,7 +78,7 @@ configure_file("${PROJECT_SOURCE_DIR}/config.h.in" "config.h") configure_file("${PROJECT_SOURCE_DIR}/sentencepiece.pc.in" "sentencepiece.pc" @ONLY) if (NOT MSVC) - install(FILES "${CMAKE_BINARY_DIR}/sentencepiece.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) + install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sentencepiece.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig) endif() include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${PROJECT_BINARY_DIR}) |