Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GameDevWeek
Dependencies
Cpp
mirrage
Commits
57d23603
Commit
57d23603
authored
Feb 12, 2019
by
Florian Oetke
Browse files
fixed SDL2_LIBRARY -> SDL2_LIBRARIES
parent
198864c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
dependencies/CMakeLists.txt
View file @
57d23603
...
...
@@ -49,14 +49,16 @@ if(MIRRAGE_PREFER_SYSTEM_SDL)
if
(
EXISTS
${
SDL2_INCLUDE_DIR
}
/SDL.h
)
add_library
(
mirrage::deps::SDL2 INTERFACE IMPORTED GLOBAL
)
set_property
(
TARGET mirrage::deps::SDL2 PROPERTY INTERFACE_LINK_LIBRARIES
${
SDL2_LIBRAR
Y
}
)
set_property
(
TARGET mirrage::deps::SDL2 PROPERTY INTERFACE_LINK_LIBRARIES
${
SDL2_LIBRAR
IES
}
)
set_property
(
TARGET mirrage::deps::SDL2 PROPERTY INTERFACE_INCLUDE_DIRECTORIES
${
SDL2_INCLUDE_DIR
}
)
message
(
"Generated SDL2 target:
${
SDL2_LIBRARIES
}
;
${
SDL2_INCLUDE_DIR
}
"
)
endif
()
endif
()
endif
()
endif
()
if
(
NOT TARGET mirrage::deps::SDL2
)
message
(
"Building SDL2 from source"
)
add_subdirectory
(
SDL
)
add_library
(
mirrage::deps::SDL2 ALIAS SDL2-static
)
add_library
(
mirrage::deps::SDL2main ALIAS SDL2main
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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