File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# Szip_FOUND Set to true to indicate the szip library was found
4
4
# Szip_INCLUDE_DIRS The directory containing the header file szip/szip.h
5
- # Szip_LIBRARIES The libraries needed to use the szip library
5
+ # Szip_LIBRARIES The libraries needed to use the szip library with the word "debug" and "optimized" when both are found
6
+ # Szip_RELEASE_LIBRARY The path to the Szip release library if available
7
+ # Szip_DEBUG_LIBRARY The path to the Szip debug library if available
8
+ # Szip_LIBRARY The path to a Szip library, preferentially release but fallback to debug
6
9
#
7
10
# To specify an additional directory to search, set Szip_ROOT.
8
11
#
@@ -38,13 +41,17 @@ IF(Szip_INCLUDE_DIRS)
38
41
PATH_SUFFIXES Release ${CMAKE_LIBRARY_ARCHITECTURE} ${CMAKE_LIBRARY_ARCHITECTURE} /Release
39
42
PATHS ${Szip_LIBRARY_DIRS} NO_DEFAULT_PATH )
40
43
41
- SET (Szip_LIBRARIES )
44
+ SET (Szip_LIBRARIES )
45
+ SET (Szip_LIBRARY )
42
46
IF (Szip_DEBUG_LIBRARY AND Szip_RELEASE_LIBRARY )
43
47
SET (Szip_LIBRARIES debug ${Szip_DEBUG_LIBRARY} optimized ${Szip_RELEASE_LIBRARY} )
48
+ SET (Szip_LIBRARY ${Szip_RELEASE_LIBRARY} )
44
49
ELSEIF (Szip_DEBUG_LIBRARY )
45
50
SET (Szip_LIBRARIES ${Szip_DEBUG_LIBRARY} )
51
+ SET (Szip_LIBRARY ${Szip_DEBUG_LIBRARY} )
46
52
ELSEIF (Szip_RELEASE_LIBRARY )
47
53
SET (Szip_LIBRARIES ${Szip_RELEASE_LIBRARY} )
54
+ SET (Szip_LIBRARY ${Szip_RELEASE_LIBRARY} )
48
55
ENDIF (Szip_DEBUG_LIBRARY AND Szip_RELEASE_LIBRARY )
49
56
50
57
IF (Szip_LIBRARIES )
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ IF(Bz2_FOUND)
100
100
SET (TLL_LIBS ${TLL_LIBS} ${Bz2_LIBRARIES} )
101
101
ENDIF ()
102
102
IF (SZIP_FOUND )
103
- SET (TLL_LIBS ${TLL_LIBS} ${SZIP_LIBRARIES } )
103
+ SET (TLL_LIBS ${TLL_LIBS} ${Szip_LIBRARY } )
104
104
ENDIF ()
105
105
106
106
IF (HAVE_LIBDL )
@@ -125,9 +125,9 @@ IF(USE_HDF5)
125
125
# builds:
126
126
# Make sure that HDF5_C_LIBRARY appears *after*
127
127
# HDF5_HL_LIBRARY.
128
- SET (TLL_LIBS ${HDF5_HL_LIBRARIES} ${HDF5_C_LIBRARIES} ${HDF5_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY } )
128
+ SET (TLL_LIBS ${HDF5_HL_LIBRARIES} ${HDF5_C_LIBRARIES} ${HDF5_LIBRARIES} ${TLL_LIBS} ${Szip_LIBRARY } )
129
129
ELSE () # Windows CMake defines HDF5_LIBRARIES.
130
- SET (TLL_LIBS ${HDF5_LIBRARIES} ${TLL_LIBS} ${SZIP_LIBRARY } )
130
+ SET (TLL_LIBS ${HDF5_LIBRARIES} ${TLL_LIBS} ${Szip_LIBRARY } )
131
131
ENDIF ()
132
132
ENDIF ()
133
133
You can’t perform that action at this time.
0 commit comments