mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-29 00:03:17 +00:00
cmake - detect missing HDF5_LIBRARIES on win/darwin
Previously it would assign .so files on Windows as libraries and you would detect error on linking stage.
This commit is contained in:
+12
-8
@@ -654,14 +654,18 @@ if(HDF5_SUPPORT)
|
||||
endif()
|
||||
|
||||
if(NOT HDF5_LIBRARIES)
|
||||
# debian default
|
||||
set(HDF5_LIBRARIES
|
||||
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_cpp.so
|
||||
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
|
||||
/usr/lib/x86_64-linux-gnu/libsz.so
|
||||
/usr/lib/x86_64-linux-gnu/libaec.so
|
||||
z dl
|
||||
)
|
||||
if(NOT WIN32 AND NOT APPLE)
|
||||
# debian default
|
||||
set(HDF5_LIBRARIES
|
||||
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_cpp.so
|
||||
/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so
|
||||
/usr/lib/x86_64-linux-gnu/libsz.so
|
||||
/usr/lib/x86_64-linux-gnu/libaec.so
|
||||
z dl
|
||||
)
|
||||
else()
|
||||
message(FATAL_ERROR "HDF5_LIBRARIES is not provided.")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_definitions(-DWITH_HDF5)
|
||||
|
||||
Reference in New Issue
Block a user