@@ -12,6 +12,9 @@ message( STATUS
12
12
============================================================
13
13
" )
14
14
15
+ message ( STATUS "Running with CMake from: ${CMAKE_COMMAND} " )
16
+ message ( STATUS "Current source dir (for OpenCoarrays): ${CMAKE_CURRENT_SOURCE_DIR} " )
17
+
15
18
# Add option and check environment to determine if developer tests should be run
16
19
if ($ENV{OPENCOARRAYS_DEVELOPER} )
17
20
option (CAF_RUN_DEVELOPER_TESTS "Run tests intended only for developers" ON )
@@ -80,8 +83,10 @@ string(REGEX REPLACE "-rc[0-9]+$"
80
83
"${OpenCoarraysVersion} " )
81
84
82
85
project (opencoarrays VERSION "${OPENCOARRAYS_CMAKE_PROJECT_VERSION} " LANGUAGES C Fortran )
86
+
83
87
message ( STATUS "Building OpenCoarrays version: ${full_git_describe} " )
84
88
set (OpenCoarrays_dist_string "OpenCoarrays-${full_git_describe} " )
89
+ message ( STATUS "Building for target architecture: ${CMAKE_SYSTEM_PROCESSOR} " )
85
90
86
91
#Print an error message on an attempt to build inside the source directory tree:
87
92
if ("${CMAKE_CURRENT_SOURCE_DIR} " STREQUAL "${CMAKE_CURRENT_BINARY_DIR} " )
@@ -838,7 +843,9 @@ include(cmake/AddInstallationScriptTest.cmake )
838
843
add_installation_script_test (installation-scripts.sh src/tests/installation/ )
839
844
840
845
# 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
842
849
add_test (NAME ISO_Fortran_binding_tests COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /ISO_Fortran_binding_tests" )
843
850
endif ()
844
851
0 commit comments