diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2012-12-07 17:19:31 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2012-12-07 17:19:31 (GMT) |
commit | f45283113bd08139fc62f672774050e7d474fd64 (patch) | |
tree | 5e34da106068952999de6c6ee508f2b5e5502eae /CMakeLists.txt | |
parent | 0de4e03305f191b02c93caf488768a9a8cb0091c (diff) | |
download | hdf5-f45283113bd08139fc62f672774050e7d474fd64.zip hdf5-f45283113bd08139fc62f672774050e7d474fd64.tar.gz hdf5-f45283113bd08139fc62f672774050e7d474fd64.tar.bz2 |
[svn-r23083] Correct cmake statement to use SET instead of ADD_DEFINITIONS
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d86d29e..3ddef9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -274,10 +274,10 @@ SET (H5_ENABLE_SHARED_LIB NO) SET (H5_ENABLE_STATIC_LIB NO) IF (BUILD_SHARED_LIBS) SET (LIB_TYPE SHARED) - ADD_DEFINITIONS (-DH5_BUILT_AS_DYNAMIC_LIB) + SET (H5_BUILT_AS_DYNAMIC_LIB 1) SET (H5_ENABLE_SHARED_LIB YES) ELSE (BUILD_SHARED_LIBS) - ADD_DEFINITIONS (-DH5_BUILT_AS_STATIC_LIB) + SET (H5_BUILT_AS_STATIC_LIB 1) SET (H5_ENABLE_STATIC_LIB YES) IF (NOT WIN32) # should this be a user setting : Everyone uses it anyway ? |