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
6dbddd32
Commit
6dbddd32
authored
Aug 11, 2019
by
Adam Badura
Browse files
Use -Wa,-mbig-obj for Cygwin/MinGW always
parent
90a443f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
googlemock/CMakeLists.txt
googlemock/CMakeLists.txt
+8
-3
No files found.
googlemock/CMakeLists.txt
View file @
6dbddd32
...
@@ -150,6 +150,14 @@ $env:Path = \"$project_bin;$env:Path\"
...
@@ -150,6 +150,14 @@ $env:Path = \"$project_bin;$env:Path\"
& $args"
)
& $args"
)
endif
()
endif
()
if
(
MINGW OR CYGWIN
)
if
(
CMAKE_VERSION VERSION_LESS
"2.8.12"
)
add_compile_options
(
"-Wa,-mbig-obj"
)
else
()
add_definitions
(
"-Wa,-mbig-obj"
)
endif
()
endif
()
############################################################
############################################################
# C++ tests built with standard compiler flags.
# C++ tests built with standard compiler flags.
...
@@ -162,9 +170,6 @@ $env:Path = \"$project_bin;$env:Path\"
...
@@ -162,9 +170,6 @@ $env:Path = \"$project_bin;$env:Path\"
cxx_test
(
gmock-generated-matchers_test gmock_main
)
cxx_test
(
gmock-generated-matchers_test gmock_main
)
cxx_test
(
gmock-internal-utils_test gmock_main
)
cxx_test
(
gmock-internal-utils_test gmock_main
)
cxx_test
(
gmock-matchers_test gmock_main
)
cxx_test
(
gmock-matchers_test gmock_main
)
if
(
MINGW OR CYGWIN
)
target_compile_options
(
gmock-matchers_test PRIVATE
"-Wa,-mbig-obj"
)
endif
()
cxx_test
(
gmock-more-actions_test gmock_main
)
cxx_test
(
gmock-more-actions_test gmock_main
)
cxx_test
(
gmock-nice-strict_test gmock_main
)
cxx_test
(
gmock-nice-strict_test gmock_main
)
cxx_test
(
gmock-port_test gmock_main
)
cxx_test
(
gmock-port_test gmock_main
)
...
...
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