diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2014-10-27 23:53:31 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2014-10-27 23:55:15 (GMT) |
commit | 197a026cfb650939a5c1054783fbe0e83802c9e6 (patch) | |
tree | 1970600729ff3bfa9b1e519f0d7e000d1f0506a7 /Tests/StringFileTest/CMakeLists.txt | |
parent | 97eb511672a8d5804f98942791c7bad9ac73e6df (diff) | |
download | CMake-197a026cfb650939a5c1054783fbe0e83802c9e6.zip CMake-197a026cfb650939a5c1054783fbe0e83802c9e6.tar.gz CMake-197a026cfb650939a5c1054783fbe0e83802c9e6.tar.bz2 |
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.
Diffstat (limited to 'Tests/StringFileTest/CMakeLists.txt')
-rw-r--r-- | Tests/StringFileTest/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/StringFileTest/CMakeLists.txt b/Tests/StringFileTest/CMakeLists.txt index e6c6152..faf3bc9 100644 --- a/Tests/StringFileTest/CMakeLists.txt +++ b/Tests/StringFileTest/CMakeLists.txt @@ -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") |