summaryrefslogtreecommitdiffstats
path: root/config/cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-10-04 15:42:44 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-10-04 15:42:44 (GMT)
commit284cb8ffc06e39d16fe0e436beff7587be54ed50 (patch)
tree532adc3124395feb32f41d79d501a730fc6dd5d2 /config/cmake
parentc5256dcd9d8a20f08e2e4a73f1c9b4be71abe0a9 (diff)
downloadhdf5-284cb8ffc06e39d16fe0e436beff7587be54ed50.zip
hdf5-284cb8ffc06e39d16fe0e436beff7587be54ed50.tar.gz
hdf5-284cb8ffc06e39d16fe0e436beff7587be54ed50.tar.bz2
TRILABS-21 Add intel compiler support
Diffstat (limited to 'config/cmake')
-rw-r--r--config/cmake/HDF5UseFortran.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/config/cmake/HDF5UseFortran.cmake b/config/cmake/HDF5UseFortran.cmake
index 1766ac8..e260f0c 100644
--- a/config/cmake/HDF5UseFortran.cmake
+++ b/config/cmake/HDF5UseFortran.cmake
@@ -33,7 +33,11 @@ endif ()
#-----------------------------------------------------------------------------
macro (FORTRAN_RUN FUNCTION_NAME SOURCE_CODE RUN_RESULT_VAR1 COMPILE_RESULT_VAR RETURN_VAR)
#
-# if (NOT DEFINED ${RUN_RESULT_VAR})
+# if (CMAKE_CROSSCOMPILING)
+# set (${OUTPUT_VAR} ${PRESET_${FUNCTION_NAME}})
+# message (STATUS "Detecting Fortran ${FUNCTION_NAME}: force ${OUTPUT_VAR}")
+# set(${RETURN_VAR} ${OUTPUT_VAR})
+# else ()
message (STATUS "Detecting Fortran ${FUNCTION_NAME}")
if (CMAKE_REQUIRED_LIBRARIES)
set (CHECK_FUNCTION_EXISTS_ADD_LIBRARIES