Commits

Anonymous committed 67305a0

Minor improvement to hermetic build support in the CMake script, by Vlad Losev.

git-svn-id: http://googletest.googlecode.com/svn/trunk@422861a406c-534a-0410-8894-cb66d6ee9925

Comments (0)

Files changed (1)

 # ctest.  You can select which tests to run using 'ctest -R regex'.
 # For more options, run 'ctest --help'.
 
-# For hermetic builds, we may need to tell CMake to use compiler in a
+# For hermetic builds, we may need to tell CMake to use toolchain in a
 # specific location.
+string(REPLACE "\\" "/" CMAKE_RC_COMPILER "${CMAKE_RC_COMPILER}")
 if (gtest_compiler)
+  string(REPLACE "\\" "/" gtest_compiler "${gtest_compiler}")
   include(CMakeForceCompiler)
   cmake_force_c_compiler("${gtest_compiler}" "")
   cmake_force_cxx_compiler("${gtest_compiler}" "")