Commit 3bf25268 authored by Leif Walsh's avatar Leif Walsh

fixed version check inequality

parent 1e3bc86b
...@@ -23,15 +23,15 @@ if (NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD) ...@@ -23,15 +23,15 @@ if (NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
endif () endif ()
## add TOKU_PTHREAD_DEBUG for debug builds ## add TOKU_PTHREAD_DEBUG for debug builds
if (CMAKE_VERSION VERSION_GREATER 2.8) if (CMAKE_VERSION VERSION_LESS 3.0)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG TOKU_PTHREAD_DEBUG=1)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DRD TOKU_PTHREAD_DEBUG=1)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DRD _FORTIFY_SOURCE=2)
else ()
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
$<$<OR:$<CONFIG:DEBUG>,$<CONFIG:DRD>>:TOKU_PTHREAD_DEBUG=1> $<$<OR:$<CONFIG:DEBUG>,$<CONFIG:DRD>>:TOKU_PTHREAD_DEBUG=1>
$<$<CONFIG:DRD>:_FORTIFY_SOURCE=2> $<$<CONFIG:DRD>:_FORTIFY_SOURCE=2>
) )
else ()
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG TOKU_PTHREAD_DEBUG=1)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DRD TOKU_PTHREAD_DEBUG=1)
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DRD _FORTIFY_SOURCE=2)
endif () endif ()
## coverage ## coverage
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment