mirror of https://github.com/encounter/SDL.git
Fix Debug-only builds with CMake
"get_filename_component(SDL2_LIBDIR ${sdl2implib} PATH)" failed if sdl2implib was set from sdl2implibdbg instead of ${sdl2implibdbg} Thanks to seyuup from the SDL Discourse for pointing this out.
This commit is contained in:
parent
0d541e5a88
commit
87ac373493
|
@ -68,10 +68,10 @@ if( sdl2implib AND sdl2mainimplib AND sdl2implibdbg AND sdl2mainimplibdbg )
|
||||||
set(SDL2_LIBRARIES $<IF:$<CONFIG:Debug>,${sdl2mainimplibdbg},${sdl2mainimplib}> $<IF:$<CONFIG:Debug>,${sdl2implibdbg},${sdl2implib}>)
|
set(SDL2_LIBRARIES $<IF:$<CONFIG:Debug>,${sdl2mainimplibdbg},${sdl2mainimplib}> $<IF:$<CONFIG:Debug>,${sdl2implibdbg},${sdl2implib}>)
|
||||||
else()
|
else()
|
||||||
if( (NOT sdl2implib) AND sdl2implibdbg ) # if we only have a debug version of the lib
|
if( (NOT sdl2implib) AND sdl2implibdbg ) # if we only have a debug version of the lib
|
||||||
set(sdl2implib sdl2implibdbg)
|
set(sdl2implib ${sdl2implibdbg})
|
||||||
endif()
|
endif()
|
||||||
if( (NOT sdl2mainimplib) AND sdl2mainimplibdbg ) # if we only have a debug version of the lib
|
if( (NOT sdl2mainimplib) AND sdl2mainimplibdbg ) # if we only have a debug version of the lib
|
||||||
set(sdl2mainimplib sdl2mainimplibdbg)
|
set(sdl2mainimplib ${sdl2mainimplibdbg})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if( sdl2implib AND sdl2mainimplib )
|
if( sdl2implib AND sdl2mainimplib )
|
||||||
|
|
Loading…
Reference in New Issue