File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -70,17 +70,11 @@ target_link_libraries(celestia-sdl PRIVATE imgui celestia)
7070
7171set_target_properties (celestia-sdl PROPERTIES CXX_VISIBILITY_PRESET hidden)
7272
73- if (TARGET SDL2::SDL2main AND TARGET SDL2::SDL2)
74- if (MINGW)
75- target_compile_definitions (celestia-sdl PRIVATE SDL_MAIN_HANDLED)
76- endif ()
77- target_link_libraries (celestia-sdl PRIVATE SDL2::SDL2main SDL2::SDL2)
78- target_link_libraries (imgui PUBLIC SDL2::SDL2)
79- else ()
80- target_include_directories (celestia-sdl PRIVATE ${SDL2_INCLUDE_DIRS} )
81- target_link_libraries (celestia-sdl PRIVATE ${SDL2_LIBRARIES} )
82- target_link_libraries (imgui PUBLIC ${SDL2_LIBRARIES} )
73+ if (MINGW)
74+ target_compile_definitions (celestia-sdl PRIVATE SDL_MAIN_HANDLED)
8375endif ()
76+ target_link_libraries (celestia-sdl PRIVATE SDL2::SDL2main SDL2::SDL2)
77+ target_link_libraries (imgui PUBLIC SDL2::SDL2)
8478
8579if (WIN32 )
8680 install (
You can’t perform that action at this time.
0 commit comments