Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Dependencies
Cpp
mirrage
Commits
ae00ec9c
Commit
ae00ec9c
authored
Feb 13, 2019
by
Lotrado
Browse files
Disabled MSVC warnings C4267 and C4018 when building SDL.
parent
2391a3f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
dependencies/CMakeLists.txt
View file @
ae00ec9c
...
...
@@ -60,6 +60,10 @@ endif()
if
(
NOT TARGET mirrage::deps::SDL2
)
message
(
"Building SDL2 from source"
)
add_subdirectory
(
SDL
)
if
(
MSVC
)
target_compile_options
(
SDL2 PRIVATE /wd4267 /wd4018
)
target_compile_options
(
SDL2-static PRIVATE /wd4267 /wd4018
)
endif
()
add_library
(
mirrage::deps::SDL2 ALIAS SDL2-static
)
add_library
(
mirrage::deps::SDL2main ALIAS SDL2main
)
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