From 8e3997b294d0e0dbaeac858949678ff9b9ccb3ac Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Tue, 22 Jun 2021 09:15:33 +0200 Subject: [PATCH] Added winpr assert config option for standalone build --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 398eb94c1..eec3d379f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -993,6 +993,12 @@ if (FREERDP_UNIFIED_BUILD) else() find_package(WinPR 3 REQUIRED) include_directories(${WinPR_INCLUDE_DIR}) + + # We want to control the winpr assert for the whole project + option(WITH_VERBOSE_WINPR_ASSERT "Compile with verbose WINPR_ASSERT." ON) + if (WITH_VERBOSE_WINPR_ASSERT) + add_definitions(-DWITH_VERBOSE_WINPR_ASSERT) + endif() endif() # Sub-directories