Work around bug installing targets created in a subdirectory

This commit is contained in:
JosiahWI
2021-04-24 04:03:09 -05:00
committed by GitHub
parent 2461e899ba
commit 826de9f6dc
2 changed files with 12 additions and 10 deletions

View File

@ -402,8 +402,14 @@ if(WIN32)
set_target_properties(IrrlichtMt PROPERTIES PREFIX "") # for DLL name
endif()
# Installation of library
if(ANDROID)
set(INSTALL_TARGETS IrrlichtMt native_app_glue PARENT_SCOPE)
set(INSTALL_TARGETS IrrlichtMt native_app_glue)
else()
set(INSTALL_TARGETS IrrlichtMt PARENT_SCOPE)
set(INSTALL_TARGETS IrrlichtMt)
endif()
install(TARGETS ${INSTALL_TARGETS}
EXPORT IrrlichtMt-export
DESTINATION "${CMAKE_INSTALL_LIBDIR}"
)