-
Notifications
You must be signed in to change notification settings - Fork 7
Default is to build GridKit without dependencies #186
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
Conversation
lukelowry
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with need of this PR. One minor issue, details below. Otherwise, builds correctly and all tests passed.
| @@ -1,5 +1,5 @@ | |||
| add_executable(test_case_format runCaseFormatTests.cpp) | |||
| target_include_directories(test_case_format PRIVATE ${THIRD_PARTY_DIR}/nlohmann-json/single_include ${THIRD_PARTY_DIR}/magic-enum/include) | |||
| target_include_directories(test_case_format PRIVATE ${GRIDKIT_THIRD_PARTY_DIR}/nlohmann-json/single_include ${GRIDKIT_THIRD_PARTY_DIR}/magic-enum/include) | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to comment out this file for my machine to build. No issues with the json include, but compiler was unable to locate <magic_enum/magic_enum.hpp>. Could be something on my end, but unclear how to fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try git submodule update --init?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to thank you for this fix. This was the issue. Is it possible to add this advice to the main README or perhaps a debug page for GridKit? @nkoukpaizan @pelesh
|
It would be good to add GRIDKIT_ENABLE_ENZYME/GRIDKIT_USE_ENZYME to And I understand why the other options are there (e.g., |
Addressed in e0e25a7. |
* Using SUNDIALS is off by default * Make SUNDIALS and KLU optional. * KLU is not a direct dependency anymore
Description
Default GridKit build was with SUNDIALS as dependency. This PR changes that to a build with no dependencies. This can help, for example, work on component models and unit tests, which do not require a solver enabled.
Proposed changes
Made changes to CMake so that GridKit modules and examples are built only if their required dependencies are enabled.
Checklist
-Wall -Wpedantic -Wconversion -Wextra.Further comments