summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorSeth R Johnson <johnsonsr@ornl.gov>2020-06-11 17:47:47 (GMT)
committerSeth R Johnson <johnsonsr@ornl.gov>2020-06-11 17:47:47 (GMT)
commit931492bd6f71d6a38cbec518c759de7bdb440fdf (patch)
treee89406dde6024de1694f4e17e591a094f76f56ab /Modules
parent7925279c20754113227202848545804cde30a3b6 (diff)
downloadCMake-931492bd6f71d6a38cbec518c759de7bdb440fdf.zip
CMake-931492bd6f71d6a38cbec518c759de7bdb440fdf.tar.gz
CMake-931492bd6f71d6a38cbec518c759de7bdb440fdf.tar.bz2
FindHDF5: use CMakeFiles for temporary files
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindHDF5.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindHDF5.cmake b/Modules/FindHDF5.cmake
index 60a313d..7a1c252 100644
--- a/Modules/FindHDF5.cmake
+++ b/Modules/FindHDF5.cmake
@@ -125,8 +125,6 @@ The following variables can be set to guide the search for HDF5 libraries and in
Set ``true`` to skip trying to find ``hdf5-config.cmake``.
#]=======================================================================]
-# This module is maintained by Will Dicharry <wdicharry@stellarscience.com>.
-
include(${CMAKE_CURRENT_LIST_DIR}/SelectLibraryConfigurations.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/FindPackageHandleStandardArgs.cmake)
@@ -347,6 +345,7 @@ function( _HDF5_invoke_compiler language output_var return_value_var version_var
# wrapper exists, but not the compiler. E.g. Miniconda / Anaconda Python
execute_process(
COMMAND ${HDF5_${language}_COMPILER_EXECUTABLE} ${test_file}
+ WORKING_DIRECTORY ${scratch_dir}
RESULT_VARIABLE return_value
)
if(return_value)
@@ -355,6 +354,7 @@ function( _HDF5_invoke_compiler language output_var return_value_var version_var
else()
execute_process(
COMMAND ${HDF5_${language}_COMPILER_EXECUTABLE} -show ${lib_type_args} ${test_file}
+ WORKING_DIRECTORY ${scratch_dir}
OUTPUT_VARIABLE output
ERROR_VARIABLE output
RESULT_VARIABLE return_value