From 520f623c5940686b0827eff8b608c4b68aa557d6 Mon Sep 17 00:00:00 2001 From: "zhanyong.wan" Date: Thu, 22 Apr 2010 23:35:34 +0000 Subject: [PATCH] Minor improvement to hermetic build support in the CMake script, by Vlad Losev. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7910b5df..159f072e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,9 +8,11 @@ # 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}" "")