diff options
author | jacobkahn <jacobkahn1@gmail.com> | 2021-05-16 23:35:27 +0300 |
---|---|---|
committer | jacobkahn <jacobkahn1@gmail.com> | 2021-05-16 23:41:17 +0300 |
commit | 1073723b1d3aef6153225f6a6ac80f607c8423c2 (patch) | |
tree | e64a596f546a3e3046b4d37ad45f25c2ad6362f8 /CMakeLists.txt | |
parent | 605c0658ba10017e23985a22b422fb730860ec3b (diff) |
CMake improvements/fixes for old versions
- Fix CMake going back to 3.1 -- (https://cmake.org/Bug/view.php?id=14444)
- Moves `install` calls back to the directories where their librari
targets are created
- Make non-transitive dependencies private (compression libs, etc) rather
than using generator expressions
- Install auxiliary libraries (besides kenlm/kenlm_util)
- Gate compression lib deps in kenlmConfig by whether they were found at
compile time
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 64a9830..1a3d102 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,15 +111,7 @@ if(ENABLE_PYTHON) add_subdirectory(python) endif() -# Asset installation -install( - TARGETS kenlm kenlm_util - EXPORT kenlmTargets - RUNTIME DESTINATION bin - LIBRARY DESTINATION lib - ARCHIVE DESTINATION lib -) - +# Install targets install(EXPORT kenlmTargets FILE kenlmTargets.cmake NAMESPACE kenlm:: |