Skip to content

Commit f94b1e1

Browse files
committed
test: simplify and correct Python
1 parent 501f60d commit f94b1e1

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ if(NOT DEFINED CRAY AND DEFINED ENV{PE_ENV})
2424
endif()
2525

2626
# --- avoid Anaconda libraries
27+
find_package(Python COMPONENTS Interpreter)
28+
2729
if(DEFINED ENV{CONDA_PREFIX})
2830
list(APPEND CMAKE_IGNORE_PREFIX_PATH $ENV{CONDA_PREFIX})
2931
list(APPEND CMAKE_IGNORE_PATH $ENV{CONDA_PREFIX}/bin)
@@ -52,10 +54,10 @@ if(hdf5_parallel OR HDF5_HAVE_PARALLEL)
5254
target_link_libraries(HDF5::HDF5 INTERFACE MPI::MPI_Fortran)
5355
endif()
5456

55-
# HDF5 bug #3663 for HDF5 1.14.2, 1.14.3, ...?
57+
# HDF5 bug #3663 for HDF5 1.14.2..4, ...?
5658
# https://github.com/HDFGroup/hdf5/issues/3663
5759
if(WIN32 AND CMAKE_Fortran_COMPILER_ID MATCHES "^Intel")
58-
if(HDF5_VERSION MATCHES "1.14.[2-3]")
60+
if(HDF5_VERSION MATCHES "1.14.[2-4]")
5961
message(VERBOSE "HDF5: applying workaround for HDF5 bug #3663 with Intel oneAPI on Windows")
6062
target_link_libraries(HDF5::HDF5 INTERFACE shlwapi)
6163
endif()

test/CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,6 @@ if(WIN32 AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.22)
9494
endif()
9595

9696
# --- Python h5py
97-
set(Python_FIND_VIRTUALENV STANDARD)
98-
# use order in PATH to pick Python interpreter
99-
# this avoids unexpected old system Python getting used IF conda environment has been activated
100-
find_package(Python COMPONENTS Interpreter)
101-
10297
if(NOT DEFINED h5py_ok)
10398
execute_process(COMMAND ${Python_EXECUTABLE} -c "import h5py"
10499
RESULT_VARIABLE ret

0 commit comments

Comments
 (0)