Skip to content

Commit

Permalink
Added SDL2main to necessary targets
Browse files Browse the repository at this point in the history
  • Loading branch information
tanis2000 committed Sep 26, 2024
1 parent 5b501d8 commit 5ff67e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ endif ()

if (NOT EMSCRIPTEN)
set(BINOCLE_STATIC_LIBS ${BINOCLE_STATIC_LIBS}
$<TARGET_OBJECTS:SDL2::SDL2main>
$<TARGET_OBJECTS:SDL2::SDL2-static>
$<TARGET_OBJECTS:ogg>
$<TARGET_OBJECTS:vorbis>
Expand All @@ -40,6 +41,7 @@ endif()

if (APPLE AND NOT IOS AND NOT WATCHOS)
set(BINOCLE_STATIC_LIBS ${BINOCLE_STATIC_LIBS}
$<TARGET_OBJECTS:SDL2::SDL2main>
$<TARGET_OBJECTS:glew>
# we're using lua instead of luajit on macos to be able to test with valgrind
#$<TARGET_OBJECTS:luajit-5.1>
Expand Down Expand Up @@ -91,6 +93,7 @@ endif()

if (MSVC)
set(BINOCLE_STATIC_LIBS ${BINOCLE_STATIC_LIBS}
$<TARGET_OBJECTS:SDL2::SDL2main>
$<TARGET_OBJECTS:glew>
# we're using lua instead of luajit on macos to be able to test with valgrind
#$<TARGET_OBJECTS:luajit-5.1>
Expand Down

0 comments on commit 5ff67e1

Please sign in to comment.