diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-09-09 16:31:46 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-09-09 16:31:46 (GMT) |
commit | ff47a7df1bc78ddf36d247c76abc03e6861b1c01 (patch) | |
tree | 78b4786655f00c75616fc894deec00989bb1f724 /tools/h5diff | |
parent | ec5f5c868fb4dad3452db045c627fe258b152cd2 (diff) | |
download | hdf5-ff47a7df1bc78ddf36d247c76abc03e6861b1c01.zip hdf5-ff47a7df1bc78ddf36d247c76abc03e6861b1c01.tar.gz hdf5-ff47a7df1bc78ddf36d247c76abc03e6861b1c01.tar.bz2 |
[svn-r19362] Move Windows specific compile and link flags to macros
Diffstat (limited to 'tools/h5diff')
-rw-r--r-- | tools/h5diff/CMakeLists.txt | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/tools/h5diff/CMakeLists.txt b/tools/h5diff/CMakeLists.txt index 1342cd2..820c3d0 100644 --- a/tools/h5diff/CMakeLists.txt +++ b/tools/h5diff/CMakeLists.txt @@ -15,16 +15,7 @@ ADD_EXECUTABLE (h5diff ${HDF5_TOOLS_H5DIFF_SOURCE_DIR}/h5diff_main.c ) H5_NAMING (h5diff) -IF (WIN32) - IF (MSVC) - IF (NOT BUILD_SHARED_LIBS) - SET_TARGET_PROPERTIES (h5diff - PROPERTIES - LINK_FLAGS "/NODEFAULTLIB:MSVCRT" - ) - ENDIF (NOT BUILD_SHARED_LIBS) - ENDIF (MSVC) -ENDIF (WIN32) +TARGET_WIN_PROPERTIES (h5diff) TARGET_LINK_LIBRARIES (h5diff ${HDF5_TOOLS_LIB_TARGET} ${HDF5_LIB_TARGET}) SET (H5_DEP_EXECUTABLES h5diff) @@ -42,14 +33,7 @@ IF (BUILD_TESTING) IF (HDF5_BUILD_GENERATORS AND NOT BUILD_SHARED_LIBS) ADD_EXECUTABLE (h5diffgentest ${HDF5_TOOLS_H5DIFF_SOURCE_DIR}/h5diffgentest.c) H5_NAMING (h5diffgentest) - IF (WIN32) - IF (MSVC) - SET_TARGET_PROPERTIES (h5diffgentest - PROPERTIES - LINK_FLAGS "/NODEFAULTLIB:MSVCRT" - ) - ENDIF (MSVC) - ENDIF (WIN32) + TARGET_WIN_PROPERTIES (h5diffgentest) TARGET_LINK_LIBRARIES (h5diffgentest ${HDF5_LIB_TARGET} ${HDF5_TOOLS_LIB_TARGET}) #ADD_TEST (NAME h5diffgentest COMMAND $<TARGET_FILE:h5diffgentest>) |