fixed FILESDIR in CMake with Windows file separators (#2977)

This commit is contained in:
Oliver Stöneberg 2020-12-25 19:57:12 +01:00 committed by GitHub
parent 92b6c83afe
commit e141d54ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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}")