-
-
Notifications
You must be signed in to change notification settings - Fork 272
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 Error at config/cmake/ConfigureChecks.cmake:312 (file) #969
Comments
@besoft This issue reminds me of the closed issue HDF5 1.12.1: Unable to compile the parallel version using CMake that I have reported in the past. Maybe the pull request #843 mentioned in the issue solves your problem. |
This looks reasonable, however we will need to make the same change in the autoconf configure. |
PR #1089 created |
The solution has been merged into all branches. |
* Convert SWMR shell scripts to Windows powershell. * Use $LastExitCode instead of $? in script * Prevent execution in a different window * Github #969 Use stdout instead of file for configure check (#1089) * Use stdout instead of file for configure check * Make change requested by #1157 * Change fortran to use stderr for configure * Correct typo * remove obsolete file check * Fortran statement fix * Don't allow H5Pset(get)_all_coll_metadata_ops for DXPLs (#1201) * Fixes const warnings in H5ES package (#1211) * Quiets a 'set but not used' warning in h5diff_array.c (#1210) * Convert vds swmr test script to powershell * Enable vdsswmr powershell test * Add configure vdsswmr statement * Correct powershell script vars * Convert SWMR shell scripts to Windows powershell. * Use $LastExitCode instead of $? in script * Prevent execution in a different window * Github #969 Use stdout instead of file for configure check (#1089) * Use stdout instead of file for configure check * Make change requested by #1157 * Change fortran to use stderr for configure * Correct typo * remove obsolete file check * Fortran statement fix * Convert vds swmr test script to powershell * Enable vdsswmr powershell test * Add configure vdsswmr statement * Correct powershell script vars * Cleanup review issues * Fix variable assignment * Change the wait function to pass in the path * Disable actual test execution until programs fixed * Adjust copyright text * Fix spelling Co-authored-by: jhendersonHDF <[email protected]> Co-authored-by: Dana Robinson <[email protected]>
it is nice solution, thanks |
CMake GUI 3.21.1 on Windows x64 with Visual Studio 16 2019 as a generator fails to configure.
The code FILE* pFile = fopen returns null, which results in TRY_RUN failure. This can be solved by running CMake GUI runs with admin rights. However, for some reason, the file is then unavailable for reading by CMAKE line 312:
My solution for the issue is to
macro (C_RUN FUNCTION_NAME SOURCE_CODE RETURN_VAR RETURN_OUTPUT_VAR)
...
#endif\n\nint main() {\nprintf(\"\\%d\\\;\\%d\\\;\", C_LDBL_DIG, C_FLT128_DIG)\\\;\n\nreturn 0\\\;\n}\n
The text was updated successfully, but these errors were encountered: