mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[svn-r23083] Correct cmake statement to use SET instead of ADD_DEFINITIONS
This commit is contained in:
parent
0de4e03305
commit
f45283113b
@ -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 ?
|
||||
|
Loading…
x
Reference in New Issue
Block a user