diff --git a/easy_profiler_core/CMakeLists.txt b/easy_profiler_core/CMakeLists.txt index 54f1475f..0ba8531d 100644 --- a/easy_profiler_core/CMakeLists.txt +++ b/easy_profiler_core/CMakeLists.txt @@ -49,16 +49,14 @@ message(STATUS " Auto-start listening = ${EASY_OPTION_LISTEN}") message(STATUS " Profile self = ${EASY_OPTION_PROFILE_SELF}") message(STATUS " Profile self blocks initial status = ${EASY_OPTION_PROFILE_SELF_BLOCKS_ON}") message(STATUS " Implicit thread registration = ${EASY_OPTION_IMPLICIT_THREAD_REGISTRATION}") -if (EASY_OPTION_IMPLICIT_THREAD_REGISTRATION) - message(STATUS " WARNING! Implicit thread registration for Unix systems can lead to memory leak") - message(STATUS " because there is no possibility to check if thread is alive and remove dead threads.") -endif () if (WIN32) message(STATUS " Event tracing = ${EASY_OPTION_EVENT_TRACING}") message(STATUS " Event tracing has low priority = ${EASY_OPTION_LOW_PRIORITY_EVENT_TRACING}") else () - message(STATUS " WARNING! Implicit thread registration for Unix systems can lead to memory leak") - message(STATUS " because there is no possibility to check if thread is alive and remove dead threads.") + if (EASY_OPTION_IMPLICIT_THREAD_REGISTRATION) + message(STATUS " WARNING! Implicit thread registration for Unix systems can lead to memory leak") + message(STATUS " because there is no possibility to check if thread is alive and remove dead threads.") + endif () message(STATUS " Removing empty unguarded threads = ${EASY_OPTION_REMOVE_EMPTY_UNGUARDED_THREADS}") if (EASY_OPTION_REMOVE_EMPTY_UNGUARDED_THREADS) message(STATUS " WARNING! Removing empty unguarded threads may lead to an application crash!")