use SDL2main
This commit is contained in:
parent
b644de1c1f
commit
f69917010a
|
@ -265,6 +265,9 @@ if (USE_SDL2)
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
list(APPEND DEPENDENCIES_COMPILE_OPTIONS "/DHAVE_LIBC")
|
list(APPEND DEPENDENCIES_COMPILE_OPTIONS "/DHAVE_LIBC")
|
||||||
endif()
|
endif()
|
||||||
|
if (WIN32)
|
||||||
|
list(APPEND DEPENDENCIES_LIBRARIES SDL2main)
|
||||||
|
endif()
|
||||||
message(STATUS "Using vendored SDL2")
|
message(STATUS "Using vendored SDL2")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
|
|
@ -613,7 +613,3 @@ int main(int argc, char** argv) {
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
#include "winMain.cpp"
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue