7aeb3bb475
The build-redbear.sh script auto-stashes working tree changes
in nested relibc and base source trees before running the
build. These changes were captured by the failed kernel
build attempt that hit the json-target-spec / kernel rust
toolchain mismatch (fixed in 0.2.5 by creating the local
0.2.5 branch).
Captured changes:
- local/recipes/kde/* : KDE Frameworks 6 source CMakeLists
whitespace changes from the autostash (preserved)
- local/recipes/qt/qtbase/* : qtypes.h whitespace from the
autostash (preserved)
- local/sources/kernel/Cargo.lock : dependency lock from
the kernel relibc rebuild attempt
- local/sources/kernel/src/lib.rs : touched (mtime) by the
build script's touch + make prefix command
This is a bookkeeping commit — the actual code changes
for the threading plan are on the 4 submodule branches
(kernel, relibc, base, libredox) and will be pushed
separately.
0.2.5 branch was created from 0.2.4 (HEAD cd3950072e) to
continue Phase 0 of the multi-threading plan work in a
clean branch.
38 lines
960 B
CMake
38 lines
960 B
CMake
# SPDX-FileCopyrightText: 2024 David Redondo <kde@david-redono.de>
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
find_package(PkgConfig)
|
|
pkg_check_modules(PKG_Libeis QUIET libeis-1.0)
|
|
|
|
find_path(Libeis_INCLUDE_DIR
|
|
NAMES libeis.h
|
|
HINTS ${PKG_Libeis_INCLUDE_DIRS}
|
|
)
|
|
find_library(Libeis_LIBRARY
|
|
NAMES eis
|
|
PATHS ${PKG_Libeis_LIBRARY_DIRS}
|
|
)
|
|
|
|
set(Libeis_VERSION ${PKG_Libeis_VERSION})
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(Libeis-1.0
|
|
FOUND_VAR Libeis-1.0_FOUND
|
|
REQUIRED_VARS
|
|
Libeis_LIBRARY
|
|
Libeis_INCLUDE_DIR
|
|
VERSION_VAR Libeis_VERSION
|
|
)
|
|
|
|
if(Libeis-1.0_FOUND AND NOT TARGET Libeis::Libeis)
|
|
add_library(Libeis::Libeis UNKNOWN IMPORTED)
|
|
set_target_properties(Libeis::Libeis PROPERTIES
|
|
IMPORTED_LOCATION "${Libeis_LIBRARY}"
|
|
INTERFACE_COMPILE_OPTIONS "${PKG_Libeis_CFLAGS_OTHER}"
|
|
INTERFACE_INCLUDE_DIRECTORIES "${Libeis_INCLUDE_DIR}"
|
|
)
|
|
endif()
|
|
|
|
mark_as_advanced(Libeis_INCLUDE_DIR Libeis_LIBRARY)
|