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
Create dealii::dealii target and add compile options #14971
Conversation
@masterleinad I now have When I look into the installed deal.IITargets.cmake, I see
which doesn't look quite right. |
@sebproell With the latest commit, we now do # Create imported target dealii::dealii
add_library(dealii::dealii INTERFACE IMPORTED)
set_target_properties(dealii::dealii PROPERTIES
INTERFACE_LINK_LIBRARIES "\$<\$<CONFIG:Debug>:dealii::dealii_debug>;\$<\$<CONFIG:>:dealii::dealii_debug>;\$<\$<CONFIG:Release>:dealii::dealii_release>"
) |
/rebuild |
1fd6bc7
to
fa68000
Compare
@masterleinad I am currently running the FE Rodeo. Would you mind to give me 48h to think about this approach. In general I think it is neat to introduce a |
@sebproell For the time being |
eafcbb2
to
6f95b96
Compare
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, I have some minor technical suggestions.
source/CMakeLists.txt
Outdated
@@ -127,6 +142,24 @@ foreach(build ${DEAL_II_BUILD_TYPES}) | |||
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${DEAL_II_EXECUTABLE_RELDIR}" | |||
) | |||
|
|||
separate_arguments(_compile_options UNIX_COMMAND | |||
"${DEAL_II_CXX_FLAGS_${build_uppercase}}" |
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.
"${DEAL_II_CXX_FLAGS_${build_uppercase}}" | |
"${DEAL_II_CXX_FLAGS_${build}}" |
source/CMakeLists.txt
Outdated
foreach(build ${DEAL_II_BUILD_TYPES}) | ||
string(TOLOWER ${build} build_lowercase) | ||
string(TOUPPER ${build} build_uppercase) |
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.
string(TOUPPER ${build} build_uppercase) | |
if("${build}" matches "DEBUG") | |
set(build_camelcase "Debug") | |
elseif("${build}" matches "RELEASE") | |
set(build_camelcase "Release") | |
endif() |
The ${build}
variable is already uppercase.
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.
Hmm... I'm pretty sure I needed that initially but I can confirm that ${build}
is uppercase indeed.
@masterleinad Would you mind to squash the reverts? |
34bd5d0
to
a82dd4c
Compare
I just squashed everything. |
We had an unfortunate "in flight" renaming conflict: One pull request renamed the variable to DEAL_II_TARGET_NAME (PR dealii#14993) while another one (PR dealii#14971) created the dealii::dealii target. Both on their own passed the CI, but once both were merged we have an issue. In reference to dealii#14971 In reference to dealii#14993
We had an unfortunate "in flight" renaming conflict: One pull request renamed the variable to DEAL_II_TARGET_NAME (PR dealii#14993) while another one (PR dealii#14971) created the dealii::dealii target. Both on their own passed the CI, but once both were merged we have an issue. In reference to dealii#14971 In reference to dealii#14993
We had an unfortunate "in flight" renaming conflict: One pull request renamed the variable to DEAL_II_TARGET_NAME (PR dealii#14993) while another one (PR dealii#14971) created the dealii::dealii target. Both on their own passed the CI, but once both were merged we have an issue. In reference to dealii#14971 In reference to dealii#14993
We had an unfortunate "in flight" renaming conflict: One pull request renamed the variable to DEAL_II_TARGET_NAME (PR dealii#14993) while another one (PR dealii#14971) created the dealii::dealii target. Both on their own passed the CI, but once both were merged we have an issue. In reference to dealii#14971 In reference to dealii#14993
This partially reverts a82dd4c In reference to dealii#14971
This pull request makes it possible to use
including using
DEAL_II_CXX_FLAGS
.(tamiko:) In reference to #14947