Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
OpenFlipper-Free
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
23
Issues
23
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenFlipper-Free
OpenFlipper-Free
Commits
7565d8a0
Commit
7565d8a0
authored
Sep 14, 2016
by
Hans-Christian Ebke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a little safeguard against GCC optimizer bug.
parent
b624c794
Pipeline
#2783
passed with stage
in 54 minutes and 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
CMakeLists.txt
CMakeLists.txt
+8
-1
No files found.
CMakeLists.txt
View file @
7565d8a0
...
...
@@ -7,7 +7,6 @@ if ( EXISTS /ACG/acgdev/gcc-4.9-x86_64/qt-5.6.0/5.6/gcc_64/ )
set
(
QT5_INSTALL_PATH /ACG/acgdev/gcc-4.9-x86_64/qt-5.6.0/5.6/gcc_64/ CACHE PATH
"Qt5 install path set for ACG environment"
)
endif
()
if
(
WIN32
)
# This is the base directory for windows library search used in the finders we shipp.
set
(
CMAKE_WINDOWS_LIBS_DIR
"c:/libs"
CACHE STRING
"Default Library search dir on windows."
)
...
...
@@ -28,6 +27,14 @@ endif()
project
(
OpenFlipper
)
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
()
# add our macro directory to cmake search path
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
${
CMAKE_SOURCE_DIR
}
/cmake
)
...
...
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