diff options
author | Marcin Junczys-Dowmunt <marcinjd@microsoft.com> | 2020-08-21 21:51:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-21 21:51:13 +0300 |
commit | c0a84a4ff8bdc200480e179d57ece43d4929d242 (patch) | |
tree | 9124e377a34dd777620b88cf8124d1fbcfc21bb0 | |
parent | 1d33bb67c3b6b2a51d3c9ffd55f37725801da39d (diff) | |
parent | b15e1e06b8e28feea6cf26b82ffd488e0ee9c688 (diff) |
Merge pull request #6 from marian-nmt/aaronpburke/fix-cmake-installmjd/oldmaster2
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 04a74cc..6e7114c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -76,7 +76,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_SOURCE_DIR} ${PROJECT_BINARY_DIR}) |