cmake switch -WITH_BENCHMARK enables BENCHFUN macro for rtengine
This commit is contained in:
parent
1079f863b6
commit
11ad1dace8
@ -112,6 +112,7 @@ endif()
|
||||
|
||||
option(USE_EXPERIMENTAL_LANG_VERSIONS "Build with -std=c++0x" OFF)
|
||||
option(BUILD_SHARED "Build with shared libraries" OFF)
|
||||
option(WITH_BENCHMARK "Build with benchmark code" OFF)
|
||||
option(WITH_MYFILE_MMAP "Build using memory mapped file" ON)
|
||||
option(WITH_LTO "Build with link-time optimizations" OFF)
|
||||
option(WITH_SAN "Build with run-time sanitizer" OFF)
|
||||
|
@ -122,6 +122,9 @@ if(LENSFUN_HAS_LOAD_DIRECTORY)
|
||||
set_source_files_properties(rtlensfun.cc PROPERTIES COMPILE_DEFINITIONS RT_LENSFUN_HAS_LOAD_DIRECTORY)
|
||||
endif()
|
||||
|
||||
if(WITH_BENCHMARK)
|
||||
add_definitions(-DBENCHMARK)
|
||||
endif()
|
||||
|
||||
if(NOT WITH_SYSTEM_KLT)
|
||||
set(RTENGINESOURCEFILES ${RTENGINESOURCEFILES}
|
||||
|
Loading…
x
Reference in New Issue
Block a user