Skip to content
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

Fix bugs in our CMake dependency declarations #259

Merged
merged 1 commit into from
Sep 8, 2023
Merged

Conversation

etremel
Copy link
Contributor

@etremel etremel commented Sep 8, 2023

Attempting to compile Derecho on a Fractus node where the LibFabrics and nlohmann-JSON libraries were not installed system-wide revealed two bugs in our CMake declarations:

  1. The Conf module did not declare its dependency on nlohmann_json even though conf.cpp includes nlohmann/json.hpp
  2. The top-level CMakeLists did not call include_directories() after calling find_package(libfabric), which is necessary for packages that do not export CMake targets (the "old way") - we need to both link ${libfabric_LIBRARIES} and include ${libfabric_INCLUDE_DIRS}.

Attempting to compile Derecho on a Fractus node where the LibFabrics and
JSON libraries were not installed system-wide revealed two bugs in our
CMake declarations: (1) The Conf module did not declare its dependency
on nlohmann_json even though conf.cpp includes nlohmann/json.hpp, and
(2) The top-level CMakeLists did not call include_directories() after
calling find_package(libfabric), which is necessary for packages that do
not export CMake targets (the "old way") - we need to both link
${libfabric_LIBRARIES} and include ${libfabric_INCLUDE_DIRS}.
@songweijia songweijia merged commit e7b082f into master Sep 8, 2023
@songweijia songweijia deleted the cmake_fixes branch January 31, 2024 20:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants