Commit 520f623c authored by zhanyong.wan's avatar zhanyong.wan
Browse files

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

parent e0548960
...@@ -8,9 +8,11 @@ ...@@ -8,9 +8,11 @@
# ctest. You can select which tests to run using 'ctest -R regex'. # ctest. You can select which tests to run using 'ctest -R regex'.
# For more options, run 'ctest --help'. # 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. # specific location.
string(REPLACE "\\" "/" CMAKE_RC_COMPILER "${CMAKE_RC_COMPILER}")
if (gtest_compiler) if (gtest_compiler)
string(REPLACE "\\" "/" gtest_compiler "${gtest_compiler}")
include(CMakeForceCompiler) include(CMakeForceCompiler)
cmake_force_c_compiler("${gtest_compiler}" "") cmake_force_c_compiler("${gtest_compiler}" "")
cmake_force_cxx_compiler("${gtest_compiler}" "") cmake_force_cxx_compiler("${gtest_compiler}" "")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment