diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2012-12-07 17:19:56 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2012-12-07 17:19:56 (GMT) |
commit | 1cf765d973e8db8a6a5f138364a9fa31163fcd04 (patch) | |
tree | 988f9887c7889992f79eadb5ba932ce210d9f667 /CMakeLists.txt | |
parent | eacbf1a279dac1a9f15cae33ec2704076966a82c (diff) | |
download | hdf5-1cf765d973e8db8a6a5f138364a9fa31163fcd04.zip hdf5-1cf765d973e8db8a6a5f138364a9fa31163fcd04.tar.gz hdf5-1cf765d973e8db8a6a5f138364a9fa31163fcd04.tar.bz2 |
[svn-r23084] 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 dcb7466..b6c375b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -281,10 +281,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 ? |