1
0

Do CMake right

This commit is contained in:
JosiahWI
2022-10-16 19:02:18 -05:00
committed by Josiah VanderZee
parent a3b2dbdebb
commit a0b7a15693
4 changed files with 52 additions and 1 deletions

View File

@@ -2,6 +2,9 @@
include(CMakeFindDependencyMacro)
find_package(tinygltf 2.6 REQUIRED
PATHS "${CMAKE_CURRENT_LIST_DIR}"
if(NOT TARGET IrrlichtMt::IrrlichtMt)
# private dependency only explicitly needed with static libs
if(@USE_SDL2@ AND NOT @BUILD_SHARED_LIBS@)