Commit d258ae30 authored by Leif Walsh's avatar Leif Walsh

fixed cmake for versions without generator expressions (hopefully)

parent b5992590
...@@ -23,9 +23,16 @@ if (NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD) ...@@ -23,9 +23,16 @@ if (NOT CMAKE_SYSTEM_NAME STREQUAL FreeBSD)
endif () endif ()
## add TOKU_PTHREAD_DEBUG for debug builds ## add TOKU_PTHREAD_DEBUG for debug builds
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS if (CMAKE_VERSION VERSION_GREATER 2.8)
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 ()
## coverage ## coverage
option(USE_GCOV "Use gcov for test coverage." OFF) option(USE_GCOV "Use gcov for test coverage." OFF)
......
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