diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a8ea872..2520278 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,13 +110,16 @@ if(NOT LOG2_RES) CHECK_FUNCTION_EXISTS(log2 LOG2_LIBM_RES) if(LOG2_LIBM_RES) set(LIBM_LIBRARY "m") + add_definitions(-DBROTLI_HAVE_LOG2=1) else() - message(FATAL_ERROR "log2() not found") + add_definitions(-DBROTLI_HAVE_LOG2=0) endif() set(CMAKE_REQUIRED_LIBRARIES "${orig_req_libs}") unset(LOG2_LIBM_RES) unset(orig_req_libs) +else() + add_definitions(-DBROTLI_HAVE_LOG2=1) endif() unset(LOG2_RES) |