Skip to content

Commit d6fc177

Browse files
committed
prefix example targets with numbers and do not make them C identifiers, update examples_tests
1 parent 2922244 commit d6fc177

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

cmake/common.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ include(ProcessorCount)
2222
macro(nbl_create_executable_project _EXTRA_SOURCES _EXTRA_OPTIONS _EXTRA_INCLUDES _EXTRA_LIBS)
2323
get_filename_component(_NBL_PROJECT_DIRECTORY_ "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
2424
get_filename_component(EXECUTABLE_NAME ${_NBL_PROJECT_DIRECTORY_} NAME)
25-
string(REGEX REPLACE "^[0-9]+\." "" EXECUTABLE_NAME ${EXECUTABLE_NAME})
2625
string(TOLOWER ${EXECUTABLE_NAME} EXECUTABLE_NAME)
27-
string(MAKE_C_IDENTIFIER ${EXECUTABLE_NAME} EXECUTABLE_NAME)
2826

2927
project(${EXECUTABLE_NAME})
3028
set_directory_properties(PROPERTIES VS_STARTUP_PROJECT ${EXECUTABLE_NAME})

0 commit comments

Comments
 (0)