diff options
author | Benoît Ganne <bganne@cisco.com> | 2024-01-19 17:43:44 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2024-01-19 19:02:27 +0000 |
commit | 9705d848a2bf0a14fb832fb9e2bc0c4a71ff8952 (patch) | |
tree | 24a33dfc7612cad6a7d1ebb14db4f6b85de99015 | |
parent | 9418143bd4c8f3bb46c32800c1ae85b20bbe8815 (diff) |
build: fix default platform
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 <bganne@cisco.com>
-rw-r--r-- | src/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
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) |