From a73fdec4eff379a95c64e11b1a051bd1d00dc84a Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Thu, 29 Dec 2022 14:07:21 +0100 Subject: [PATCH] cmake: Remove prefix/suffix exceptions Now handled by having shorter variant names --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d16f6e78e..d2355d016 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -501,10 +501,9 @@ if(CMAKE_CROSSCOMPILING) endif() message("Variant added: ${THIS_VAR}") - string(REPLACE "-E3Dv6full" "" DIR_NAME "${THIS_VAR}") - string(REPLACE "1_75mm_" "" DIR_NAME "${DIR_NAME}") # Generate a file in a subfolder so that we can organize things a little more neatly in VS code + set(DIR_NAME ${THIS_VAR}) file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/build_gen/${DIR_NAME}) file(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/build_gen/${DIR_NAME}/CMakeLists.txt "project(${DIR_NAME})\nfw_add_variant(${THIS_VAR})"