Fix bad USE_INTERNAL_GPERFTOOLS_LIBRARY not using UNBUNDLED

UNBUNDLED is supposed to set every USE_INTERNAL_* variables to 0.
This is not the case with USE_INTERNAL_GPERFTOOLS_LIBRARY which only depends on wether we're running FreeBSD.
This patch aims to:
- set USE_INTERNAL_GPERFTOOLS_LIBRARY to 0 when running FreeBSD
- set USE_INTERNAL_GPERFTOOLS_LIBRARY to NOT_UNBUNDLED for other systems
This commit is contained in:
Jean Baptiste Favre 2017-02-14 21:37:46 +01:00
parent 1491a383d2
commit 26ddf808b5

View File

@ -73,11 +73,12 @@ option (USE_INTERNAL_POCO_LIBRARY "Set to FALSE to use system poco library inste
if (CMAKE_SYSTEM MATCHES "FreeBSD")
set(NOT_FREEBSD 0)
option (USE_INTERNAL_GPERFTOOLS_LIBRARY "Set to FALSE to use system gperftools (tcmalloc) library instead of bundled" ${NOT_FREEBSD})
else ()
set(NOT_FREEBSD 1)
option (USE_INTERNAL_GPERFTOOLS_LIBRARY "Set to FALSE to use system gperftools (tcmalloc) library instead of bundled" ${NOT_UNBUNDLED})
endif ()
option (USE_INTERNAL_GPERFTOOLS_LIBRARY "Set to FALSE to use system gperftools (tcmalloc) library instead of bundled" ${NOT_FREEBSD})
option (USE_INTERNAL_ZLIB_LIBRARY "Set to FALSE to use system zlib library instead of bundled" ${NOT_UNBUNDLED})