Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
2cb42c9d
Commit
2cb42c9d
authored
Sep 14, 2016
by
Hans-Christian Ebke
Browse files
Added a little safeguard against GCC optimizer bug to CMakeLists.txt.
parent
bfc8506c
Pipeline
#2777
passed with stage
in 20 minutes and 39 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
2cb42c9d
...
@@ -7,6 +7,14 @@ if("${PROJECT_NAME}" STREQUAL "")
...
@@ -7,6 +7,14 @@ if("${PROJECT_NAME}" STREQUAL "")
project
(
OpenMesh
)
project
(
OpenMesh
)
endif
()
endif
()
if
(
CMAKE_CXX_COMPILER_ID STREQUAL
"GNU"
)
if
(
CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"6.0"
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER
"4.9"
OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL
"4.9"
)
message
(
WARNING
"Your version of GCC contains an optimizer bug. Please verify that you do not use -O3!"
)
string
(
REPLACE
"-O3"
"-O2"
CMAKE_CXX_FLAGS_RELEASE_NEW
"
${
CMAKE_CXX_FLAGS_RELEASE
}
"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"
${
CMAKE_CXX_FLAGS_RELEASE_NEW
}
"
CACHE STRING
""
FORCE
)
endif
()
endif
()
if
(
WIN32
)
if
(
WIN32
)
# This is the base directory for windows library search used in the finders we ship.
# This is the base directory for windows library search used in the finders we ship.
set
(
CMAKE_WINDOWS_LIBS_DIR
"c:/libs"
CACHE STRING
"Default Library search dir on windows."
)
set
(
CMAKE_WINDOWS_LIBS_DIR
"c:/libs"
CACHE STRING
"Default Library search dir on windows."
)
...
...
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