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:
parent
97eb511672
commit
197a026cfb
|
@ -189,7 +189,7 @@ string(CONFIGURE "${infile}" infile+-/out @ONLY)
|
||||||
set(infile "${infile+-/out}")
|
set(infile "${infile+-/out}")
|
||||||
|
|
||||||
# Write include file to a file
|
# 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(WRITE "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h-tmp" "${outfile}")
|
||||||
file(RENAME "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h-tmp"
|
file(RENAME "${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h-tmp"
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h")
|
"${CMAKE_CURRENT_BINARY_DIR}/OutputFile.h")
|
||||||
|
|
Loading…
Reference in New Issue