From 152eb983ffe0eed298c4abf539c23df0fea8a5e7 Mon Sep 17 00:00:00 2001 From: tobim Date: Thu, 28 Jan 2021 00:39:05 +0100 Subject: [PATCH] Fix the CMake generated install target (#1412) * Re-enable installation of simdjson-config.cmake * Install a simdjson-config-version.cmake file --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c6d8124..9a11ad55 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,13 @@ configure_package_config_file("${PROJECT_SOURCE_DIR}/cmake/simdjson-config.cmake INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/simdjson" NO_SET_AND_CHECK_MACRO NO_CHECK_REQUIRED_COMPONENTS_MACRO) +write_basic_package_version_file( + "${PROJECT_BINARY_DIR}/simdjson-config-version.cmake" + VERSION ${SIMDJSON_SEMANTIC_VERSION} + COMPATIBILITY SameMinorVersion) +install(FILES "${PROJECT_BINARY_DIR}/simdjson-config.cmake" + "${PROJECT_BINARY_DIR}/simdjson-config-version.cmake" + DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/simdjson") # # Compile tools / tests / benchmarks