Fix failing StringFileTest when using unicode characters.

Some compilers (e.g. MSVC) can have a different encoding than the build tool.
Changing the test to not use a full include path written to a header file by cmake.
This commit is contained in:
Clinton Stimpson 2014-10-27 17:53:31 -06:00
parent 97eb511672
commit 197a026cfb
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ string(CONFIGURE "${infile}" infile+-/out @ONLY)
set(infile "${infile+-/out}")
# Write include file to a file
string(REGEX REPLACE "includefile" "${file}" outfile "${infile}")
string(REGEX REPLACE "includefile" "Includes/Values.h" outfile "${infile}")
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h-tmp" "${outfile}")
file(RENAME "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h-tmp"
"${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h")