mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 05:59:00 +08:00
15 lines
608 B
Diff
15 lines
608 B
Diff
|
diff --git a/Common/CMakeLists.txt b/Common/CMakeLists.txt
|
||
|
index 2b160ff..559e6a8 100644
|
||
|
--- a/Common/CMakeLists.txt
|
||
|
+++ b/Common/CMakeLists.txt
|
||
|
@@ -99,6 +99,8 @@ add_library(${PROJECTNAME} ${HEADER_FILES} ${SOURCE_FILES})
|
||
|
|
||
|
mygui_set_platform_name(${MYGUI_RENDERSYSTEM})
|
||
|
add_dependencies(${PROJECTNAME} MyGUI.${MYGUI_PLATFORM_NAME}Platform)
|
||
|
-target_link_libraries(${PROJECTNAME} MyGUI.${MYGUI_PLATFORM_NAME}Platform)
|
||
|
+
|
||
|
+find_package(SDL2 CONFIG REQUIRED)
|
||
|
+target_link_libraries(${PROJECTNAME} MyGUI.${MYGUI_PLATFORM_NAME}Platform SDL2::SDL2 SDL2::SDL2main)
|
||
|
|
||
|
add_dependencies(${PROJECTNAME} MyGUIEngine)
|