Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
520f623c
Commit
520f623c
authored
Apr 22, 2010
by
zhanyong.wan
Browse files
Minor improvement to hermetic build support in the CMake script, by Vlad Losev.
parent
e0548960
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CMakeLists.txt
CMakeLists.txt
+3
-1
No files found.
CMakeLists.txt
View file @
520f623c
...
...
@@ -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
}
"
""
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment