Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
1e908873
Commit
1e908873
authored
Apr 05, 2010
by
vladlosev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake 2.8/Visual Age compatibility patch by Hady Zalek.
parent
b9a7cead
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
CMakeLists.txt
CMakeLists.txt
+4
-2
No files found.
CMakeLists.txt
View file @
1e908873
...
...
@@ -79,13 +79,15 @@ elseif (CMAKE_COMPILER_IS_GNUCXX)
# explicitly.
set
(
cxx_no_rtti_flags
"-fno-rtti -DGTEST_HAS_RTTI=0"
)
set
(
cxx_strict_flags
"-Wextra"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"SunPro"
)
elseif
(
CMAKE_CXX_COMPILER_ID
STREQUAL
"SunPro"
)
set
(
cxx_exception_flags
"-features=except"
)
# Sun Pro doesn't provide macros to indicate whether exceptions and
# RTTI are enabled, so we define GTEST_HAS_* explicitly.
set
(
cxx_no_exception_flags
"-features=no%except -DGTEST_HAS_EXCEPTIONS=0"
)
set
(
cxx_no_rtti_flags
"-features=no%rtti -DGTEST_HAS_RTTI=0"
)
elseif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"VisualAge"
)
elseif
(
CMAKE_CXX_COMPILER_ID STREQUAL
"VisualAge"
OR
CMAKE_CXX_COMPILER_ID STREQUAL
"XL"
)
# CMake 2.8 changes Visual Age's compiler ID to "XL".
set
(
cxx_exception_flags
"-qeh"
)
set
(
cxx_no_exception_flags
"-qnoeh"
)
# Until version 9.0, Visual Age doesn't define a macro to indicate
...
...
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