From 319e891d7d0d54a08902d34e7f8a739152b0755b Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Mon, 22 Apr 2019 17:42:10 +0300 Subject: [PATCH] cmake: guard macro definitions in PCH scripts fixes build with VTK --- cmake/OpenCVPCHSupport.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVPCHSupport.cmake b/cmake/OpenCVPCHSupport.cmake index 0590793401..b36fa78ccd 100644 --- a/cmake/OpenCVPCHSupport.cmake +++ b/cmake/OpenCVPCHSupport.cmake @@ -302,7 +302,7 @@ MACRO(ADD_PRECOMPILED_HEADER _targetName _input) if [ -n \"$VERBOSE\" ]; then tail -n1 \$0 fi -${_command} -D$, -D> +${_command} '-D$,' '-D>' ") GET_FILENAME_COMPONENT(_outdir ${_output} PATH) ADD_CUSTOM_COMMAND(