Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion VERSION.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
1.2.63
1.2.64

# Change log
## 1.2.64
- feat: add explicit dependency checks for optional components
- feat: disable automatic source RPM generation
- fix: prevent cryptic build failures when dependencies are missing
## 1.2.63
- fix: kernel Makefile now generates version header automatically
## 1.2.62
Expand Down
4 changes: 4 additions & 0 deletions cmake/CreatePackage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ set(CPACK_RPM_PACKAGE_RELEASE_DIST ON)
set(CPACK_RPM_PACKAGE_LICENSE "BSD-2-Clause-Patent")
set(CPACK_RPM_BUILD_SOURCE_DIRS_PREFIX "/clltk-debug")

# Disable automatic source RPM generation
# Source RPMs can still be built explicitly via the 'srpm' target
set(CPACK_SOURCE_GENERATOR "")

# Per-component RPM package names
set(CPACK_RPM_TRACING_PACKAGE_NAME "clltk-tracing")
set(CPACK_RPM_DECODER_LIBS_PACKAGE_NAME "clltk-decoder")
Expand Down
6 changes: 5 additions & 1 deletion command_line_tool/interface/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Copyright (c) 2024, International Business Machines
# SPDX-License-Identifier: BSD-2-Clause-Patent


# Check for required dependencies
find_package(RapidJSON QUIET)
if(NOT RapidJSON_FOUND)
message(FATAL_ERROR "command_line_tool requires rapidjson-devel package. Install it or disable with -DCLLTK_COMMAND_LINE_TOOL=OFF")
endif()

find_package(RapidJSON REQUIRED)
find_package(CLI11 REQUIRED)
Expand Down
6 changes: 6 additions & 0 deletions decoder_tool/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@


# Check for required Boost dependency
find_package(Boost QUIET CONFIG)
if(NOT Boost_FOUND)
message(FATAL_ERROR "cpp decoder requires boost-devel package. Install it or disable with -DCLLTK_CPP_DECODER=OFF")
endif()

find_package(Boost REQUIRED CONFIG)

set(TARGET_SOURCES
Expand Down
6 changes: 6 additions & 0 deletions snapshot_library/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Copyright (c) 2024, International Business Machines
# SPDX-License-Identifier: BSD-2-Clause-Patent

# Check for required libarchive dependency
find_library(ARCHIVE_LIBRARY NAMES archive)
if(NOT ARCHIVE_LIBRARY)
message(FATAL_ERROR "snapshot_library requires libarchive-devel package. Install it or disable with -DCLLTK_SNAPSHOT=OFF")
endif()

add_library(clltk_snapshot_static STATIC
source/file.cpp
source/snapshot.cpp
Expand Down
Loading