diff --git a/CMake/variants/BGPCN.cmake b/CMake/variants/BGPCN.cmake
index 7f872e8c98e7df8a7525b351315f3de7e961a2b2..325125d4b243dec89c315c35992250d23259de75 100644
--- a/CMake/variants/BGPCN.cmake
+++ b/CMake/variants/BGPCN.cmake
@@ -33,7 +33,6 @@ set(BGPCN_EXE_LINKER_FLAGS_DEBUG)
 set(BGPCN_EXE_LINKER_FLAGS_OPT)
 set(BGPCN_COMPILE_DEFINITIONS
   -B/bgsys/drivers/ppcfloor/gnu-linux/powerpc-bgp-linux/bin
-  -DBOOST_ENABLE_ASSERT_HANDLER
   -DHAVE_BGP
   -DHAVE_BGP_CN
   -DHAVE_FCNP
diff --git a/RTCP/CNProc/CMakeLists.txt b/RTCP/CNProc/CMakeLists.txt
index a87a8bea1aabc63d1f44bda55e663402d55370ad..756b2c76301567ebb5ad4d67909de99c6abf3981 100644
--- a/RTCP/CNProc/CMakeLists.txt
+++ b/RTCP/CNProc/CMakeLists.txt
@@ -2,6 +2,8 @@
 
 lofar_package(CNProc 1.0 DEPENDS Common Stream Interface FCNP)
 
+add_definitions(-DBOOST_ENABLE_ASSERT_HANDLER)
+
 include(LofarFindPackage)
 lofar_find_package(MASS)
 lofar_find_package(Boost REQUIRED)