cmake: fix embedded allegro getting built as a shared lib

This commit is contained in:
Sebastian Krzyszkowiak 2019-09-07 03:55:34 +02:00
parent d9b0892637
commit 521ea828f8
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF

View file

@ -17,7 +17,7 @@ if (EMSCRIPTEN)
endif()
if (LIBSUPERDERPY_EMBEDDED_ALLEGRO)
set(SHARED OFF) # Allegro doesn't namespace this...
option(SHARED "Build embedded Allegro as a shared library" OFF) # Allegro doesn't namespace this...
add_subdirectory("3rdparty/allegro5" EXCLUDE_FROM_ALL)
set_property(TARGET "allegro" PROPERTY POSITION_INDEPENDENT_CODE ON)
set_property(TARGET "allegro_font" PROPERTY POSITION_INDEPENDENT_CODE ON)