From 9705d848a2bf0a14fb832fb9e2bc0c4a71ff8952 Mon Sep 17 00:00:00 2001 From: Benoît Ganne Date: Fri, 19 Jan 2024 17:43:44 +0100 Subject: build: fix default platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When unsetting VPP_PLATFORM in cmake, it unmasks the cached value instead, misleading the platform selection logic in src/cmake/cpu.cmake Type: fix Fixes: 01fe7ab88e Change-Id: I676cd0af9ba28150f8ac07724c03df8ef24b640f Signed-off-by: Benoît Ganne --- src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d13685b8d14..7c4f8db7095 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -15,6 +15,7 @@ cmake_minimum_required(VERSION 3.13) if(DEFINED VPP_PLATFORM AND VPP_PLATFORM STREQUAL "default") unset(VPP_PLATFORM) + unset(VPP_PLATFORM CACHE) set(VPP_PLATFORM_NAME "default") elseif(DEFINED VPP_PLATFORM) set(platform_file ${CMAKE_SOURCE_DIR}/cmake/platform/${VPP_PLATFORM}.cmake) -- cgit 1.2.3-korg