-
-
Notifications
You must be signed in to change notification settings - Fork 265
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
Rework Fortran configure to allow multiple CMake reruns #721
Conversation
# The provided CMake C macros don't provide a general compile/run function | ||
# so this one is used. | ||
#----------------------------------------------------------------------------- | ||
macro (C_RUN FUNCTION_NAME SOURCE_CODE RETURN_VAR) |
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.
This macro and tests moved from HDF5UseFortran.cmake
config/cmake/HDF5UseFortran.cmake
Outdated
@@ -129,74 +129,12 @@ endif () | |||
# Determine the available KINDs for REALs and INTEGERs | |||
#----------------------------------------------------------------------------- | |||
|
|||
#READ_SOURCE ("PROGRAM FC_AVAIL_KINDS" "END PROGRAM FC_AVAIL_KINDS" SOURCE_CODE) | |||
set (PROG_SRC_CODE |
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.
Use source file
config/cmake/HDF5UseFortran.cmake
Outdated
@@ -271,7 +209,7 @@ foreach (KIND ${VAR}) | |||
else () | |||
FORTRAN_RUN("INTEGER KIND SIZEOF" ${PROG_SRC_${KIND}} XX YY VALIDINTKINDS_RESULT_${KIND}) | |||
endif () | |||
file (READ "${RUN_OUTPUT_PATH_DEFAULT}/pac_validIntKinds.out" PROG_OUTPUT1) | |||
file (READ "${RUN_OUTPUT_PATH_DEFAULT}/pac_validIntKinds.${KIND}.out" PROG_OUTPUT1) |
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 not reuse output files, reruns of config will not rerun successful tests.
ccmake runs iteratively, and the check_fortran_source_runs macros were clobbering a single output file that did not get updated on further configure iterations
No description provided.