]> git.lizzy.rs Git - irrlicht.git/commitdiff
Fix Android build (again)
authorsfan5 <sfan5@live.de>
Sat, 17 Apr 2021 15:30:45 +0000 (17:30 +0200)
committersfan5 <sfan5@live.de>
Sat, 17 Apr 2021 15:47:09 +0000 (17:47 +0200)
closes #27

CMakeLists.txt
source/Irrlicht/CMakeLists.txt

index eaa5716f7b7445cf6e4b1bddc623402a5fb5ff12..5adbb4f7a9961bcef0218cc9bab0bc1e2b78ed0f 100644 (file)
@@ -29,7 +29,7 @@ add_subdirectory(source/Irrlicht)
 
 # Installation of library and headers.
 include(GNUInstallDirs)
-install(TARGETS IrrlichtMt
+install(TARGETS ${INSTALL_TARGETS}
        EXPORT IrrlichtMt-export
        DESTINATION "${CMAKE_INSTALL_LIBDIR}"
 )
index f8bf8196bfa383e8c06b10ee24b7453240b92646..d709546b31b870a7f50c4d1e93ac992c123ecf54 100644 (file)
@@ -401,3 +401,9 @@ set_target_properties(IrrlichtMt PROPERTIES
 if(WIN32)
        set_target_properties(IrrlichtMt PROPERTIES PREFIX "") # for DLL name
 endif()
+
+if(ANDROID)
+       set(INSTALL_TARGETS IrrlichtMt native_app_glue PARENT_SCOPE)
+else()
+       set(INSTALL_TARGETS IrrlichtMt PARENT_SCOPE)
+endif()