Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
500d83ba
Commit
500d83ba
authored
Apr 13, 2014
by
Rolf Eike Beer
Committed by
Brad King
May 06, 2014
Browse files
CompileFlags: add better selection which aCC version gets -AA +hpxstd98 flags
parent
f347fd12
Changes
1
Hide whitespace changes
Inline
Side-by-side
CompileFlags.cmake
View file @
500d83ba
...
...
@@ -54,8 +54,12 @@ if(CMAKE_SYSTEM MATCHES "OSF1-V.*")
endif
()
if
(
CMAKE_SYSTEM_NAME MATCHES
"HP-UX"
AND CMAKE_CXX_COMPILER_ID MATCHES
"HP"
)
# it is known that version 3.85 fails and 6.25 works without these flags
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4
)
# HP aCC since version 3.80 supports the flag +hpxstd98 to get ANSI C++98
# template support. It is known that version 6.25 doesn't need that flag.
# Versions prior to 3.80 will not be able to build CMake. Current assumption:
# it is needed for every version from 3.80 to 4 to get it working.
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4 AND
NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.80
)
# use new C++ library and improved template support
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-AA +hpxstd98"
)
endif
()
...
...
Write
Preview
Supports
Markdown
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