@@ -12,6 +12,9 @@ message( STATUS
1212============================================================
1313" )
1414
15+ message ( STATUS "Running with CMake from: ${CMAKE_COMMAND} " )
16+ message ( STATUS "Current source dir (for OpenCoarrays): ${CMAKE_CURRENT_SOURCE_DIR} " )
17+
1518# Add option and check environment to determine if developer tests should be run
1619if ($ENV{OPENCOARRAYS_DEVELOPER} )
1720 option (CAF_RUN_DEVELOPER_TESTS "Run tests intended only for developers" ON )
@@ -80,8 +83,10 @@ string(REGEX REPLACE "-rc[0-9]+$"
8083 "${OpenCoarraysVersion} " )
8184
8285project (opencoarrays VERSION "${OPENCOARRAYS_CMAKE_PROJECT_VERSION} " LANGUAGES C Fortran)
86+
8387message ( STATUS "Building OpenCoarrays version: ${full_git_describe} " )
8488set (OpenCoarrays_dist_string "OpenCoarrays-${full_git_describe} " )
89+ message ( STATUS "Building for target architecture: ${CMAKE_SYSTEM_PROCESSOR} " )
8590
8691#Print an error message on an attempt to build inside the source directory tree:
8792if ("${CMAKE_CURRENT_SOURCE_DIR} " STREQUAL "${CMAKE_CURRENT_BINARY_DIR} " )
@@ -838,7 +843,9 @@ include(cmake/AddInstallationScriptTest.cmake )
838843add_installation_script_test(installation-scripts.sh src/tests/installation/)
839844
840845# Test ISO_Fortran_binding library
841- if ( "${CMAKE_C_COMPILER_ID} " STREQUAL "GNU" )
846+ if ( (( "${CMAKE_C_COMPILER_ID} " STREQUAL "GNU" ) AND ( "${CMAKE_SYSTEM_PROCESSOR} " STREQUAL "x86_64" ))
847+ OR ( CAF_RUN_DEVELOPER_TESTS OR $ENV{OPENCOARRAYS_DEVELOPER} ) )
848+ # See https://github.com/sourceryinstitute/OpenCoarrays/issues/523#issuecomment-401613209
842849 add_test (NAME ISO_Fortran_binding_tests COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /ISO_Fortran_binding_tests" )
843850endif ()
844851
0 commit comments