diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-10-20 16:41:39 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-10-20 16:41:39 (GMT) |
commit | 9e2fff4540bbbc1718e1395f101973800f706eb9 (patch) | |
tree | 6a76948ae4cf1def6c3f6c81faf9808e8d4f0ddb /test | |
parent | 3f74a217d04fc133a640cc1928fb97d3b6b696e5 (diff) | |
download | hdf5-9e2fff4540bbbc1718e1395f101973800f706eb9.zip hdf5-9e2fff4540bbbc1718e1395f101973800f706eb9.tar.gz hdf5-9e2fff4540bbbc1718e1395f101973800f706eb9.tar.bz2 |
[svn-r19650] Put back deleted library check in configure.
Remove shared library check around ws2_32.lib linking in test library. Issue on windows static builds.
Tested: windows
Diffstat (limited to 'test')
-rw-r--r-- | test/CMakeLists.txt | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 2bed576..b3af7e6 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -22,11 +22,9 @@ CONFIGURE_FILE (${HDF5_TEST_SOURCE_DIR}/H5srcdir_str.h.in H5srcdir_str.h @ONLY) INCLUDE_DIRECTORIES (${CMAKE_CURRENT_BINARY_DIR}) ADD_LIBRARY (${HDF5_TEST_LIB_TARGET} ${LIB_TYPE} ${TEST_LIB_SRCS} ${TEST_LIB_HEADERS}) -IF (BUILD_SHARED_LIBS) - IF (MSVC) - TARGET_LINK_LIBRARIES (${HDF5_TEST_LIB_TARGET} "ws2_32.lib") - ENDIF (MSVC) -ENDIF (BUILD_SHARED_LIBS) +IF (MSVC) + TARGET_LINK_LIBRARIES (${HDF5_TEST_LIB_TARGET} "ws2_32.lib") +ENDIF (MSVC) TARGET_LINK_LIBRARIES (${HDF5_TEST_LIB_TARGET} ${HDF5_LIB_TARGET}) SET_GLOBAL_VARIABLE (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_TEST_LIB_TARGET}") H5_SET_LIB_OPTIONS (${HDF5_TEST_LIB_TARGET} ${HDF5_TEST_LIB_NAME} ${LIB_TYPE}) |