win9x.cmake: remove unneeded dependencies

This commit is contained in:
Xavier Del Campo Romero 2022-06-08 00:20:33 +02:00
parent 99bb23e194
commit 0517c897c5
1 changed files with 1 additions and 5 deletions

View File

@ -1,10 +1,6 @@
file(MAKE_DIRECTORY ${cdroot})
if("$ENV{SDL_PATH}" STREQUAL "")
message(FATAL_ERROR "please define env variable SDL_PATH")
elseif("$ENV{SDL_TTF_PATH}" STREQUAL "")
message(FATAL_ERROR "please define env variable SDL_TTF_PATH")
elseif("$ENV{FREETYPE_PATH}" STREQUAL "")
message(FATAL_ERROR "please define env variable FREETYPE_PATH")
elseif("$ENV{SDL_MIXER_PATH}" STREQUAL "")
message(FATAL_ERROR "please define env variable SDL_MIXER_PATH")
endif()
@ -20,7 +16,7 @@ add_library(SDL STATIC IMPORTED)
set_property(TARGET SDL PROPERTY IMPORTED_LOCATION $ENV{SDL_PATH}/lib/libSDL.a)
target_include_directories(SDL INTERFACE
$ENV{SDL_PATH}/include $ENV{SDL_PATH}/include/SDL)
target_link_libraries(SDL INTERFACE gdi32 user32 winmm dxguid freetype)
target_link_libraries(SDL INTERFACE gdi32 user32 winmm dxguid)
add_library(SDL_mixer STATIC IMPORTED)
set_property(TARGET SDL_mixer PROPERTY IMPORTED_LOCATION