From 8d600fde12c3d7870fc24d70f4ce318f83229936 Mon Sep 17 00:00:00 2001 From: abhijit-sawant Date: Wed, 11 Nov 2020 01:54:01 -0500 Subject: [PATCH] Updated cmake script so cppcheck.exe works in place during development (#2895) Moved -DFILESDIR out of Linux only block so FILESDIR is defined for Windows too --- cmake/compilerDefinitions.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/compilerDefinitions.cmake b/cmake/compilerDefinitions.cmake index 8bf0b3954..d36984c70 100644 --- a/cmake/compilerDefinitions.cmake +++ b/cmake/compilerDefinitions.cmake @@ -11,8 +11,7 @@ if (UNIX) # TODO: check if this can be enabled again for Clang - also done in Makefile if (CMAKE_BUILD_TYPE MATCHES "Debug" AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) add_definitions(-D_GLIBCXX_DEBUG) - endif() - add_definitions(-DFILESDIR="${FILESDIR}") + endif() endif() if (HAVE_RULES) @@ -26,3 +25,5 @@ endif() if (ENABLE_CHECK_INTERNAL) add_definitions(-DCHECK_INTERNAL) endif() + +add_definitions(-DFILESDIR="${FILESDIR}")