diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-03-24 21:45:12 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-03-24 21:45:12 (GMT) |
commit | 1505fa14987c46ee4a698cd272cdaa62d8399ef8 (patch) | |
tree | 8067fb1064dc8d823ff9c62b91196a9b28be567e /hl/c++ | |
parent | 77bac54352a61bcd746df9c848e905ae559330df (diff) | |
download | hdf5-1505fa14987c46ee4a698cd272cdaa62d8399ef8.zip hdf5-1505fa14987c46ee4a698cd272cdaa62d8399ef8.tar.gz hdf5-1505fa14987c46ee4a698cd272cdaa62d8399ef8.tar.bz2 |
TRILAB-192 restrict extensive warnings to libraries
Diffstat (limited to 'hl/c++')
-rw-r--r-- | hl/c++/src/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hl/c++/src/CMakeLists.txt b/hl/c++/src/CMakeLists.txt index 866f372..01c8126 100644 --- a/hl/c++/src/CMakeLists.txt +++ b/hl/c++/src/CMakeLists.txt @@ -14,6 +14,9 @@ if (NOT ONLY_SHARED_LIBS) PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>" INTERFACE "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>" ) + target_compile_options(${HDF5_HL_CPP_LIB_TARGET} + PRIVATE "${HDF5_CMAKE_CXX_FLAGS}" + ) TARGET_C_PROPERTIES (${HDF5_HL_CPP_LIB_TARGET} STATIC) target_link_libraries (${HDF5_HL_CPP_LIB_TARGET} PUBLIC ${HDF5_HL_LIB_TARGET} ${HDF5_LIB_TARGET}) set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_CPP_LIB_TARGET}") @@ -28,6 +31,9 @@ if (BUILD_SHARED_LIBS) PRIVATE "${HDF5_SRC_DIR};${HDF5_BINARY_DIR};$<$<BOOL:${HDF5_ENABLE_PARALLEL}>:${MPI_C_INCLUDE_DIRS}>" INTERFACE "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>" ) + target_compile_options(${HDF5_HL_CPP_LIBSH_TARGET} + PRIVATE "${HDF5_CMAKE_CXX_FLAGS}" + ) target_compile_definitions(${HDF5_HL_CPP_LIBSH_TARGET} PUBLIC "H5_BUILT_AS_DYNAMIC_LIB" ) |