-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
shouldn't be status-code
in CMakeLists.txt too?
#45
Conversation
I'm not really sure what's going on here. On my side, $ cmake -S . -B build-linux --preset build-linux -DCMAKE_BUILD_TYPE=Release -Doperon_DEVELOPER_MODE=1 -DCMAKE_CXX_FLAGS="-ferror-limit=1 -march=x86-64-v3 -fsized-deallocation" -DBUILD_SHARED_LIBS=0
Preset CMake variables:
CMAKE_CXX_EXTENSIONS="OFF"
CMAKE_CXX_STANDARD="20"
CMAKE_CXX_STANDARD_REQUIRED="ON"
Preset environment variables:
CXX_OPT="-fsized-deallocation -fno-math-errno -march=x86-64-v3"
CXX_WARNINGS="-Wall -Wextra -Werror -pedantic"
-- The CXX compiler identification is Clang 19.1.4
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/vf3hd7i68qxi735vl51mn1zwmyd0g7ip-clang-wrapper-19.1.4/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /nix/store/1zgzrsbq3b0f06k76pha0r8hmfwvjvc0-git-2.47.0/bin/git (found version "2.47.0")
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Taskflow found. Headers: /nix/store/sljci11prirkjjnj9nqjrnjfs2mjsh2p-taskflow-3.8.0/include/
-- Found zstd: /nix/store/8pys6a47askf0g75a1k73p3rx2wim7m6-zstd-1.5.6/lib/libzstd.so
-- Found Zstd: /nix/store/8pys6a47askf0g75a1k73p3rx2wim7m6-zstd-1.5.6/lib/libzstd.so
-- Found status-code: /nix/store/2p8mh67fmzq0qn9my71y3lnfp0zlaj3d-ned14-status-code-0.1.0.0/lib/cmake/status-code/status-codeConfig.cmake
-- MATH: Eigen
-- Using Eigen backend
-- Enabled features:
* USE_SINGLE_PRECISION, Perform model evaluation using floats (single precision) instead of doubles. Great for reducing runtime, might not be appropriate for all purposes [default=OFF].
* MATH_BACKEND, Math library for tree evaluation (defaults to Eigen)
-- Disabled features:
* USE_JEMALLOC, Link against jemalloc, a general purpose malloc(3) implementation that emphasizes fragmentation avoidance and scalable concurrency support [default=OFF].
* USE_CERES, Use the non-linear least squares optimizer from Ceres solver to tune model coefficients (if OFF, Eigen::LevenbergMarquardt will be used instead).
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring done (0.9s)
-- Generating done (0.0s)
-- Build files have been written to: /home/bogdb/src/operon-main/build-linux Could you post the full CMake log? Are you building inside a nix dev shell or in some other way? It may be that the |
This is my full output of cmake:
Above I ran the cmake manually from hand in bash terminal, dependencies are loaded using
yes... thank you for confirming that I'm closing this PR because if current cmake setup works properly at your primary build platform, no need to fix it here and I should investigate where the issue is coming from. |
it seems it is not bug in cmake of operon itself. |
I'm not very good with cmake, so when trying to analyze this error:
(coming from command
cmake ..
inoperon/build
)I found that adding
find_package(status-code REQUIRED)
intoCMakeLists.txt
fixes this problem.I'd be happy if anybody knowledgeable with cmake could take look at this.