diff options
author | Aaron Burke <aaburke@microsoft.com> | 2020-08-21 20:15:42 +0300 |
---|---|---|
committer | Aaron Burke <aaburke@microsoft.com> | 2020-08-21 20:15:42 +0300 |
commit | ee11f1f8420c8a79cf3b071949304815484d84b5 (patch) | |
tree | 994b4bd6c78a38108d21599ebca7eaa0f30cc191 | |
parent | c6f08932757a4f39d013be12f86e1f6251022214 (diff) |
sentencepiece.pc should be installed from CMAKE_CURRENT_BINARY_DIR, not CMAKE_BINARY_DIR, to support being included (and installed) from other projects
-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}) |