-
Notifications
You must be signed in to change notification settings - Fork 465
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
Remove openfast_cpp target if BUILD_OPENFAST_CPP_API not selected #1586
Merged
deslaughter
merged 5 commits into
OpenFAST:rc-3.5.1
from
andrew-platt:b/cpp_api_compile
Oct 13, 2023
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
7cbd2f6
OpFM: fix inconsistent typing of NodeCluster in FAST_Types
andrew-platt 55b8e11
cmake: remove openfast_cpp_api from default build if not selected
andrew-platt 94ca6ed
Add CMake option for BUILD_OPENFAST_CPP_DRIVER for openfast_cpp_drive…
andrew-platt a416303
CTest: openfast_cpp_driver executable name
andrew-platt 10094c5
OFcpp: some updates based on PR feedback
andrew-platt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,9 +20,6 @@ add_executable(openfast src/FAST_Prog.f90) | |
target_link_libraries(openfast openfastlib_static) | ||
set_target_properties(openfast PROPERTIES LINKER_LANGUAGE Fortran) | ||
|
||
add_executable(openfast_cpp src/FAST_Prog.cpp src/FastLibAPI.cpp) | ||
target_link_libraries(openfast_cpp openfastlib) | ||
|
||
string(TOUPPER ${CMAKE_Fortran_COMPILER_ID} _compiler_id) | ||
if (${_compiler_id} STREQUAL "GNU" AND NOT ${VARIABLE_TRACKING}) | ||
# With variable tracking enabled, the compile step frequently aborts on large modules and | ||
|
@@ -33,5 +30,15 @@ if (${_compiler_id} STREQUAL "GNU" AND NOT ${VARIABLE_TRACKING}) | |
set_source_files_properties(src/FAST_Prog.f90 PROPERTIES COMPILE_FLAGS "-fno-var-tracking -fno-var-tracking-assignments") | ||
endif() | ||
|
||
install(TARGETS openfast openfast_cpp | ||
install(TARGETS openfast | ||
RUNTIME DESTINATION bin) | ||
|
||
if(BUILD_OPENFAST_CPP_API AND BUILD_OPENFAST_CPP_DRIVER) | ||
add_executable(openfast_cpp_driver src/FAST_Prog.cpp src/FastLibAPI.cpp) | ||
target_link_libraries(openfast_cpp_driver openfastlib) | ||
|
||
install(TARGETS openfast_cpp_driver | ||
RUNTIME DESTINATION bin) | ||
endif(BUILD_OPENFAST_CPP_API AND BUILD_OPENFAST_CPP_DRIVER) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could we not repeat the condition at the end of the block? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry, old habits ;) |
||
|
||
|
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
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
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
Oops, something went wrong.
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.
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.
openfast_cpp_driver
doesn't use theopenfastcpplib
, does it need to check forBUILD_OPENFAST_CPP_API
?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 need to make another pass through the logic here. There are a couple other minor things I think should be addressed.