File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,12 @@ cmake_minimum_required (VERSION 3.18)
2
2
project (HDF5_F90_SRC C Fortran)
3
3
4
4
#-----------------------------------------------------------------------------
5
+ if (H5_NO_DEPRECATED_SYMBOLS)
6
+ set (CMAKE_NO_DEPRECATED_SYMBOLS 0)
7
+ else ()
8
+ set (CMAKE_NO_DEPRECATED_SYMBOLS 1)
9
+ endif ()
10
+
5
11
# configure def file for shared libs on windows
6
12
if (WIN32 )
7
13
if (BUILD_SHARED_LIBS )
@@ -14,9 +20,7 @@ if (WIN32)
14
20
if (NOT H5_FORTRAN_C_LONG_DOUBLE_IS_UNIQUE)
15
21
set (H5_DBL_NOT_UNIQUE_EXP ";" )
16
22
endif ()
17
- set (CMAKE_NO_DEPRECATED_SYMBOLS 0)
18
23
if (NOT H5_NO_DEPRECATED_SYMBOLS)
19
- set (CMAKE_NO_DEPRECATED_SYMBOLS 1)
20
24
set (DLL_NO_DEPRECATED_SYMBOLS ";" )
21
25
endif ()
22
26
configure_file (${HDF5_F90_SRC_SOURCE_DIR} /hdf5_fortrandll.def.in ${HDF5_F90_SRC_BINARY_DIR} /hdf5_fortrandll.def @ONLY)
You can’t perform that action at this time.
0 commit comments