cmake: Remove prefix/suffix exceptions

Now handled by having shorter variant names
This commit is contained in:
Yuri D'Elia 2022-12-29 14:07:21 +01:00 committed by 3d-gussner
parent cb8f68192a
commit a73fdec4ef
1 changed files with 1 additions and 2 deletions

View File

@ -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})"