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
This commit is contained in:
abhijit-sawant 2020-11-11 01:54:01 -05:00 committed by GitHub
parent e785885b4d
commit 8d600fde12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,7 @@ if (UNIX)
# TODO: check if this can be enabled again for Clang - also done in Makefile # 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")) if (CMAKE_BUILD_TYPE MATCHES "Debug" AND NOT (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
add_definitions(-D_GLIBCXX_DEBUG) add_definitions(-D_GLIBCXX_DEBUG)
endif() endif()
add_definitions(-DFILESDIR="${FILESDIR}")
endif() endif()
if (HAVE_RULES) if (HAVE_RULES)
@ -26,3 +25,5 @@ endif()
if (ENABLE_CHECK_INTERNAL) if (ENABLE_CHECK_INTERNAL)
add_definitions(-DCHECK_INTERNAL) add_definitions(-DCHECK_INTERNAL)
endif() endif()
add_definitions(-DFILESDIR="${FILESDIR}")