diff options
| author | Henrik S. Gaßmann <[email protected]> | 2023-05-11 11:26:38 +0200 |
|---|---|---|
| committer | Jack O'Connor <[email protected]> | 2023-05-23 14:48:45 -0700 |
| commit | 4bb04665791e9bb1f23ecf198dbfc48dba3cc849 (patch) | |
| tree | b71167be03e1190e119e32210a62eb18ec138e26 /c/blake3-config.cmake.in | |
| parent | 2dd4e57f68d85f3983b1880b66250fc7bdf0b7c8 (diff) | |
Refactor CMake buildsystem to be portable and modern
Aggreggate source files directly in the target instead of a proxy
variable.
Install CMake package config files in order to allow the project to be
found via `find_package()` by dependents.
Replace hard coded SIMD compiler flags with configurable options. Retain
the current GCC/Clang flags as defaults for these compilers. Add default
SIMD compiler flags for MSVC.
Remove hard coded compiler flags (including -fPIC). These are not
portable and should be set by the toolchain file or on the CLI.
- Guard ASM sources with triplet compatibility checks.
- Remove the `BLAKE3_STATIC` option in favor of [`BUILD_SHARED_LIBS`].
[`BUILD_SHARED_LIBS`]: https://cmake.org/cmake/help/v3.9/variable/BUILD_SHARED_LIBS.html
Diffstat (limited to 'c/blake3-config.cmake.in')
| -rw-r--r-- | c/blake3-config.cmake.in | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/c/blake3-config.cmake.in b/c/blake3-config.cmake.in new file mode 100644 index 0000000..071552b --- /dev/null +++ b/c/blake3-config.cmake.in @@ -0,0 +1,5 @@ +@PACKAGE_INIT@ + +include("${CMAKE_CURRENT_LIST_DIR}/blake3-targets.cmake") + +check_required_components(blake3)
\ No newline at end of file |
