Fix(raknet): Init submodules correctly

This commit is contained in:
Dave Corley 2023-10-03 15:10:26 -05:00
parent b8dd373f0a
commit 8eda96c8ef

View File

@ -24,7 +24,7 @@ IF(RakNet_INCLUDES)
SET(RakNet_FOUND TRUE)
ENDIF(RakNet_INCLUDES)
IF(NOT RakNet_FOUND)
IF(RakNet_FOUND)
IF(RakNet_FIND_REQUIRED)
MESSAGE(STATUS "Could not find RakNet, building from local copy")
@ -48,7 +48,7 @@ IF(NOT RakNet_FOUND)
message(FATAL_ERROR "The submodules were not downloaded! GIT_SUBMODULE was turned off or failed. Please update submodules and try again.")
endif()
ENDIF(RakNet_FIND_REQUIRED)
ENDIF(NOT RakNet_FOUND)
ENDIF(RakNet_FOUND)
add_subdirectory(extern/raknet)