diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-10-17 19:49:06 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-10-17 19:49:06 (GMT) |
commit | cd38a32601e3aacacd45365f8f129bfe08f08898 (patch) | |
tree | 7c5dc70b51c69c3d3d02e3951d2185ade5d0a96c /CMakeLists.txt | |
parent | 62aa159e098d0c19b07d4e1089b0f36ffdb7a305 (diff) | |
download | hdf5-cd38a32601e3aacacd45365f8f129bfe08f08898.zip hdf5-cd38a32601e3aacacd45365f8f129bfe08f08898.tar.gz hdf5-cd38a32601e3aacacd45365f8f129bfe08f08898.tar.bz2 |
[svn-r21593] Add CMake option to disable packaging component: needed to avoid configuration warning when using Visual Studio Express versions on windows.
Tested: Bangan
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d7209ea..0e45088 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -607,6 +607,7 @@ ENDIF (HDF5_ENABLE_SZIP_SUPPORT) OPTION (HDF5_PACKAGE_EXTLIBS "CPACK - include external libraries" OFF) IF (NOT HDF5_EXTERNALLY_CONFIGURED) IF (HDF5_PACKAGE_EXTLIBS) + SET (HDF5_NO_PACKAGES OFF CACHE BOOL "CPACK - Disable packaging" FORCE) IF (HDF5_ENABLE_Z_LIB_SUPPORT AND ZLIB_FOUND) PACKAGE_ZLIB_LIBRARY (${HDF5_ALLOW_EXTERNAL_SUPPORT} ${LIB_TYPE}) ENDIF (HDF5_ENABLE_Z_LIB_SUPPORT AND ZLIB_FOUND) @@ -915,7 +916,7 @@ ENDIF (NOT HDF5_EXTERNALLY_CONFIGURED) #----------------------------------------------------------------------------- # Set the cpack variables #----------------------------------------------------------------------------- -IF (NOT HDF5_EXTERNALLY_CONFIGURED) +IF (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES) SET (CPACK_PACKAGE_VENDOR "HDF Group") SET (CPACK_PACKAGE_NAME "${HDF5_PACKAGE_NAME}") SET (CPACK_PACKAGE_INSTALL_DIRECTORY "${HDF5_PACKAGE_NAME}") @@ -1063,4 +1064,4 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED) ) ENDIF (HDF5_BUILD_HL_LIB) -ENDIF (NOT HDF5_EXTERNALLY_CONFIGURED) +ENDIF (NOT HDF5_EXTERNALLY_CONFIGURED AND NOT HDF5_NO_PACKAGES) |