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

@ -12,7 +12,6 @@ if (UNIX)
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()
if (HAVE_RULES)
@ -26,3 +25,5 @@ endif()
if (ENABLE_CHECK_INTERNAL)
add_definitions(-DCHECK_INTERNAL)
endif()
add_definitions(-DFILESDIR="${FILESDIR}")