From e141d54ae52cb63d2fdbcc27199eb1f252812e0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20St=C3=B6neberg?= Date: Fri, 25 Dec 2020 19:57:12 +0100 Subject: [PATCH] fixed FILESDIR in CMake with Windows file separators (#2977) --- cmake/compilerDefinitions.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/compilerDefinitions.cmake b/cmake/compilerDefinitions.cmake index d36984c70..bf783bd0a 100644 --- a/cmake/compilerDefinitions.cmake +++ b/cmake/compilerDefinitions.cmake @@ -26,4 +26,5 @@ if (ENABLE_CHECK_INTERNAL) add_definitions(-DCHECK_INTERNAL) endif() -add_definitions(-DFILESDIR="${FILESDIR}") +file(TO_CMAKE_PATH ${FILESDIR} _filesdir) +add_definitions(-DFILESDIR="${_filesdir}")