From a9fd7c5e08a6d406a30fde983b57d111940f4915 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Sat, 19 Aug 2023 23:09:47 -0700 Subject: [PATCH] Always extract navmeshes --- CMakeLists.txt | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c951f9a..6fae6d5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,15 +149,13 @@ endforeach() message(STATUS "Resource file integrity check complete") # Copy navmesh data on first build and extract it -if (NOT EXISTS ${PROJECT_BINARY_DIR}/navmeshes/) - configure_file( - ${CMAKE_SOURCE_DIR}/resources/navmeshes.zip ${PROJECT_BINARY_DIR}/navmeshes.zip - COPYONLY - ) +configure_file( + ${CMAKE_SOURCE_DIR}/resources/navmeshes.zip ${PROJECT_BINARY_DIR}/navmeshes.zip + COPYONLY +) - file(ARCHIVE_EXTRACT INPUT ${PROJECT_BINARY_DIR}/navmeshes.zip) - file(REMOVE ${PROJECT_BINARY_DIR}/navmeshes.zip) -endif() +file(ARCHIVE_EXTRACT INPUT ${PROJECT_BINARY_DIR}/navmeshes.zip) +file(REMOVE ${PROJECT_BINARY_DIR}/navmeshes.zip) # Copy vanity files on first build set(VANITY_FILES "CREDITS.md" "INFO.md" "TESTAMENT.md" "NPC.xml")