Make sure that we compile irrlicht only as static library.

Compiling as shared library can cause errors during linking because of GLContextDebugBit variable, which is defined in STK sources.
This commit is contained in:
Deve 2015-10-17 16:02:35 +02:00
parent 4fad614d55
commit e7e7e9e7d3

View File

@ -501,7 +501,7 @@ if(APPLE)
set_source_files_properties(source/Irrlicht/MacOSX/OSXClipboard.mm PROPERTIES LANGUAGE C)
endif()
add_library(stkirrlicht ${IRRLICHT_SOURCES})
add_library(stkirrlicht STATIC ${IRRLICHT_SOURCES})
target_link_libraries(stkirrlicht ${PNG_LIBRARY} ${JPEG_LIBRARY} ${ZLIB_LIBRARY})