Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
FORMUS3IC_LAS3
/
embb
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7e7ad05b
authored
Feb 10, 2016
by
Marcus Winter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: remove vs (before 2015) warnings
parent
104d9335
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
CMakeCommon/SetCompilerFlags.cmake
+5
-1
No files found.
CMakeCommon/SetCompilerFlags.cmake
View file @
7e7ad05b
...
@@ -95,10 +95,14 @@ function(SetVisualStudioCompilerFlags)
...
@@ -95,10 +95,14 @@ function(SetVisualStudioCompilerFlags)
# 5026 -> Move constructor was implicitly defined as deleted
# 5026 -> Move constructor was implicitly defined as deleted
# 5027 -> Move assignment operator was implicitly defined as deleted
# 5027 -> Move assignment operator was implicitly defined as deleted
#
#
set
(
warning_flags
"/Wall /wd4820 /wd4514 /wd4668 /wd4710 /wd4350 /wd4571 /wd4625 /wd4626 /wd4711 /wd4255
/wd5026 /wd5027
"
)
set
(
warning_flags
"/Wall /wd4820 /wd4514 /wd4668 /wd4710 /wd4350 /wd4571 /wd4625 /wd4626 /wd4711 /wd4255"
)
if
(
WARNINGS_ARE_ERRORS STREQUAL ON
)
if
(
WARNINGS_ARE_ERRORS STREQUAL ON
)
set
(
warning_flags
"
${
warning_flags
}
/WX"
)
set
(
warning_flags
"
${
warning_flags
}
/WX"
)
endif
()
endif
()
string
(
FIND
"
${
CMAKE_GENERATOR
}
"
"Visual Studio 14 2015"
vs2015_state
)
if
(
vs2015_state EQUAL 0
)
set
(
warning_flags
"
${
warning_flags
}
/wd5026 /wd5027"
)
endif
()
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
warning_flags
}
"
PARENT_SCOPE
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
warning_flags
}
"
PARENT_SCOPE
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
warning_flags
}
"
PARENT_SCOPE
)
set
(
CMAKE_C_FLAGS
"
${
CMAKE_C_FLAGS
}
${
warning_flags
}
"
PARENT_SCOPE
)
endif
()
endif
()
...
...
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