Age | Commit message (Collapse) | Author |
|
CMAKE_EXE_LINKER_FLAGS is a user-facing cached variable, more so,
possibly initialized by a toolset via CMAKE_EXE_LINKER_FLAGS_INIT.
Augment it instead of overwriting.
|
|
|
|
|
|
- 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
|
|
The lib still doesn't produce a CMake config file i.e.
https://gitlab.kitware.com/cmake/community/-/wikis/doc/tutorials/How-to-create-a-ProjectConfig.cmake-file.
This change creates one and lets KenLM interact with modern CMake
projects without a ton of Findkenlm.cmake cruft.
Other improvements include:
- Remove duplicative linking of `${Boost_LIBRARIES}` and instead link
to kenlm_util once then transitively to other targets
- Do the same for Threads::Threads
- Both of the above libraries are handled for transitive linking via
CMake's `find_dependency(...)` in the genreated `kenlmConfig.cmake`
- Wrap libraries in `BUILD_INTERFACE` so that libraries that find KenLM
don't transitively compile with lib and include paths that are the
same as the machines KenLM was compiled in
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Suppress C4716
* Do not include pthread if on Windows
* Use /MT when FORCE_STATIC is enabled
* Add additional Boost libraries as required for the build
* Using CMake module-defined parameters for compression libraries (ZLIB, BZIP2, LZMA)
|
|
|
|
|
|
|
|
|
|
Removing optionality for interpolation; it's now triggered by eigen
Absorb common into main kenlm library
Library files, also reduces required version
|
|
|
|
|
|
CMake can now build the binaries,
but I haven't tried the unit tests yet.
|
|
CMake can generate build scripts for a number of build systems,
including make, XCode, Visual Studio, and Eclipse.
In-source and out-of-source builds are allowed,
but the CMake people suggest out-of-source builds.
To do an out-of-source build using make:
mkdir build
cd build
cmake ..
make
make test
To do an out-of-source build using XCode:
mkdir xcode
cd xcode
cmake -G Xcode ..
|