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
6f3f9a9e
Commit
6f3f9a9e
authored
May 18, 2022
by
Axel Kohlmeyer
Browse files
set -utf-8 flag only for real MSVC compilers. E.g. not Intel's icx.exe
parent
8d51dc50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
googletest/cmake/internal_utils.cmake
googletest/cmake/internal_utils.cmake
+3
-1
No files found.
googletest/cmake/internal_utils.cmake
View file @
6f3f9a9e
...
...
@@ -82,7 +82,9 @@ macro(config_compiler_and_linker)
# http://stackoverflow.com/questions/3232669 explains the issue.
set
(
cxx_base_flags
"
${
cxx_base_flags
}
-wd4702"
)
# Ensure MSVC treats source files as UTF-8 encoded.
set
(
cxx_base_flags
"
${
cxx_base_flags
}
-utf-8"
)
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"MSVC"
)
set
(
cxx_base_flags
"
${
cxx_base_flags
}
-utf-8"
)
endif
()
elseif
(
CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"
)
set
(
cxx_base_flags
"-Wall -Wshadow -Wconversion"
)
set
(
cxx_exception_flags
"-fexceptions"
)
...
...
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