mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
[svn-r29234] Fix H5 LIB OPTIONS macro for correct ARGN support
This commit is contained in:
parent
c9ea243157
commit
8538eedde3
@ -94,12 +94,7 @@ endif (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_TEST_PLUGIN_LIB_TARGET} SHARED ${HDF5_TEST_SOURCE_DIR}/${test_lib}.c)
|
||||
TARGET_C_PROPERTIES (${HDF5_TEST_PLUGIN_LIB_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
H5_SET_LIB_OPTIONS (
|
||||
${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_PLUGIN_LIB_NAME}
|
||||
SHARED ${HDF5_PACKAGE_SOVERSION}
|
||||
HDF5_TEST_PLUGIN_LIB_NAME_RELEASE
|
||||
HDF5_TEST_PLUGIN_LIB_NAME_DEBUG
|
||||
)
|
||||
H5_SET_LIB_OPTIONS (${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_PLUGIN_LIB_NAME} SHARED ${HDF5_PACKAGE_SOVERSION})
|
||||
set_target_properties (${HDF5_TEST_PLUGIN_LIB_TARGET} PROPERTIES FOLDER libraries/TEST_PLUGIN)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
@ -125,12 +120,7 @@ endif (BUILD_SHARED_LIBS)
|
||||
add_library (${HDF5_TEST_PLUGIN_LIB_TARGET} SHARED ${HDF5_TEST_SOURCE_DIR}/${test_lib}.c)
|
||||
TARGET_C_PROPERTIES (${HDF5_TEST_PLUGIN_LIB_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
H5_SET_LIB_OPTIONS (
|
||||
${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_PLUGIN_LIB_NAME}
|
||||
SHARED ${HDF5_PACKAGE_SOVERSION}
|
||||
HDF5_TEST_PLUGIN_LIB_NAME_RELEASE
|
||||
HDF5_TEST_PLUGIN_LIB_NAME_DEBUG
|
||||
)
|
||||
H5_SET_LIB_OPTIONS (${HDF5_TEST_PLUGIN_LIB_TARGET} ${HDF5_TEST_PLUGIN_LIB_NAME} SHARED ${HDF5_PACKAGE_SOVERSION})
|
||||
set_target_properties (${HDF5_TEST_PLUGIN_LIB_TARGET} PROPERTIES FOLDER libraries/TEST_PLUGIN)
|
||||
|
||||
#-----------------------------------------------------------------------------
|
||||
|
@ -56,12 +56,7 @@ if (BUILD_TESTING)
|
||||
add_library (${HDF5_TOOL_PLUGIN_LIB_TARGET} SHARED dynlib_rpk.c)
|
||||
TARGET_C_PROPERTIES (${HDF5_TOOL_PLUGIN_LIB_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_TOOL_PLUGIN_LIB_TARGET} ${HDF5_TEST_LIB_TARGET})
|
||||
H5_SET_LIB_OPTIONS (
|
||||
${HDF5_TOOL_PLUGIN_LIB_TARGET} ${HDF5_TOOL_PLUGIN_LIB_NAME}
|
||||
SHARED ${HDF5_PACKAGE_SOVERSION}
|
||||
HDF5_TOOL_PLUGIN_LIB_NAME_RELEASE
|
||||
HDF5_TOOL_PLUGIN_LIB_NAME_DEBUG
|
||||
)
|
||||
H5_SET_LIB_OPTIONS (${HDF5_TOOL_PLUGIN_LIB_TARGET} ${HDF5_TOOL_PLUGIN_LIB_NAME} SHARED ${HDF5_PACKAGE_SOVERSION})
|
||||
|
||||
# make plugins dir
|
||||
file (MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/plugins")
|
||||
|
@ -41,13 +41,8 @@ add_library (${HDF5_TOOLS_LIB_TARGET} STATIC ${H5_TOOLS_LIB_SRCS} ${H5_TOOLS_LIB
|
||||
TARGET_C_PROPERTIES (${HDF5_TOOLS_LIB_TARGET} STATIC " " " ")
|
||||
target_link_libraries (${HDF5_TOOLS_LIB_TARGET} ${HDF5_LIB_TARGET})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_TOOLS_LIB_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (
|
||||
${HDF5_TOOLS_LIB_TARGET} ${HDF5_TOOLS_LIB_NAME}
|
||||
STATIC
|
||||
HDF5_TOOLS_LIB_NAME_RELEASE
|
||||
HDF5_TOOLS_LIB_NAME_DEBUG
|
||||
)
|
||||
set_target_properties (${HDF5_TOOLS_LIB_TARGET} PROPERTIES
|
||||
H5_SET_LIB_OPTIONS (${HDF5_TOOLS_LIB_TARGET} ${HDF5_TOOLS_LIB_NAME} STATIC)
|
||||
set_target_properties (${HDF5_TOOLS_LIB_TARGET} PROPERTIES
|
||||
FOLDER libraries/tools
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
)
|
||||
@ -59,13 +54,8 @@ if (BUILD_SHARED_LIBS)
|
||||
TARGET_C_PROPERTIES (${HDF5_TOOLS_LIBSH_TARGET} SHARED " " " ")
|
||||
target_link_libraries (${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_LIBSH_TARGET})
|
||||
set_global_variable (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_TOOLS_LIBSH_TARGET}")
|
||||
H5_SET_LIB_OPTIONS (
|
||||
${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_TOOLS_LIB_NAME}
|
||||
SHARED ${HDF5_TOOLS_PACKAGE_SOVERSION}
|
||||
HDF5_TOOLS_LIB_NAME_RELEASE
|
||||
HDF5_TOOLS_LIB_NAME_DEBUG
|
||||
)
|
||||
set_target_properties (${HDF5_TOOLS_LIBSH_TARGET} PROPERTIES
|
||||
H5_SET_LIB_OPTIONS (${HDF5_TOOLS_LIBSH_TARGET} ${HDF5_TOOLS_LIB_NAME} SHARED ${HDF5_TOOLS_PACKAGE_SOVERSION})
|
||||
set_target_properties (${HDF5_TOOLS_LIBSH_TARGET} PROPERTIES
|
||||
FOLDER libraries/tools
|
||||
COMPILE_DEFINITIONS "H5_BUILT_AS_DYNAMIC_LIB"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/include>"
|
||||
|
Loading…
Reference in New Issue
Block a user