-
Notifications
You must be signed in to change notification settings - Fork 16
Cmake issues #219
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
Cmake issues #219
Conversation
src/CMakeLists.txt
Outdated
| if(spdlog_FOUND) | ||
| if(PCMS_ENABLE_SPDLOG) | ||
| add_definitions(-DPCMS_SPDLOG_ENABLED) | ||
| target_compile_definitions(pcms_core INTERFACE -DPCMS_SPDLOG_ENABLED) |
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.
Do we need both PCMS_ENABLE_SPDLOG and PCMS_SPDLOG_ENABLED, or can we use just one of them in both CMakeLists.txt and source code?
I’m also wondering if it is redundant to use both add_definitions and target_compile_definitions. Based on my understanding of cmake, add_definitions affects all targets while target_compile_definitions affects pcms_core. Does our use case require both?
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.
You are correct. We should remove add_definitions and only be using the target_compile_definitions. It is probably also better to match the name of the compile definition and cmake variable as you suggest.
2daf82a to
96c7398
Compare
Errors were reported with older adios2 versions. closes SCOREC#218
96c7398 to
f5fae51
Compare
This commit updates PCMS configuration options to use a configuration file. This should do a better job of ensuring that downstream applications are setting up the correct configuration options if they do not build with CMake. It also has the benefit of making it easier to identify what options PCMS was configured with without parsing the CMake package files.
f5fae51 to
1b0addf
Compare
|
@abhiyan123 this came up in one of conversations about merging #209. The file configuration.h.in gets configured to have all of the defines instead of including them in the build process with |
|
@Sichao25 this is ready for re-review. |
Sichao25
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.
Looks good to me!
No description provided.