generated from NOAA-OWP/owp-open-source-project-template
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Modify CMakelists.txt so that test_bmi_fortran can find iso_c #735
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program--
requested changes
Feb 14, 2024
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.
Just two minor changes, then otherwise it's good!
Good catch, Thank you!
…On Wed, Feb 14, 2024 at 9:23 AM Justin Singh-M. - NOAA < ***@***.***> wrote:
***@***.**** requested changes on this pull request.
Just two minor changes, then otherwise it's good!
------------------------------
In extern/test_bmi_fortran/CMakeLists.txt
<#735 (comment)>:
> @@ -16,7 +16,22 @@ target_sources(testbmifortranmodel PRIVATE ${_TESTBMIFORTRAN_OBJECTS})
target_compile_options(testbmifortranmodel PRIVATE -cpp -ffree-line-length-none)
target_compile_definitions(testbmifortranmodel PRIVATE NGEN_ACTIVE)
target_include_directories(testbmifortranmodel INTERFACE "${_TESTBMIFORTRAN_BINARY_DIR}/mod")
-target_link_libraries(testbmifortranmodel PUBLIC iso_c_bmi)
+
+if(NGEN_IS_MAIN_PROJECT)
+
+ # This ensures we can build NOAH-OWP-Modular with NGen support, but
Comment should specify testbmifortranmodel, not NOAH-OWP-Modular
------------------------------
In extern/test_bmi_fortran/CMakeLists.txt
<#735 (comment)>:
> + #target_link_libraries(surfacebmi PUBLIC iso_c_bmi)
+ target_link_libraries(testbmifortranmodel PUBLIC iso_c_bmi)
+ #target_compile_definitions(surfacebmi PRIVATE NGEN_FORCING_ACTIVE NGEN_OUTPUT_ACTIVE NGEN_ACTIVE)
Should remove the commented out lines
—
Reply to this email directly, view it on GitHub
<#735 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA4SROI2HWSRGHVBFACU23YTTJFHAVCNFSM6AAAAABDHHRYUKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQOBQGU4TCMJWG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sorry, I misunderstood. Now a corrected version is pushed up.
…On Wed, Feb 14, 2024 at 2:25 PM Justin Singh-M. - NOAA < ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In extern/test_bmi_fortran/CMakeLists.txt
<#735 (comment)>:
> + #target_link_libraries(surfacebmi PUBLIC iso_c_bmi)
+ target_link_libraries(testbmifortranmodel PUBLIC iso_c_bmi)
+ #target_compile_definitions(surfacebmi PRIVATE NGEN_FORCING_ACTIVE NGEN_OUTPUT_ACTIVE NGEN_ACTIVE)
Your last commit removed the comment above the conditional, but I was
talking about the comments of target_link_libraries and
target_compile_definitions, which are directly referenced in this comment
—
Reply to this email directly, view it on GitHub
<#735 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACA4SRNYGS64RMPTCE2YRY3YTUMSPAVCNFSM6AAAAABDHHRYUKVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTQOBRGI2DKMJUGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
program--
approved these changes
Feb 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fix a compile error for extern/test_bmi_fortran where an error such as following occurs:
Additions
Removals
Changes
extern/test_bmi_fortran/CMakeLists.txt
Testing
Screenshots
Notes
Todos
Checklist
Testing checklist (automated report can be put here)
Target Environment support