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