Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 15313cb

Browse files
committed
feat: add definition for flag NITRO_VERSION
1 parent 11df54b commit 15313cb

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

CMakeLists.txt

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ if(DEBUG)
4141
add_compile_definitions(ALLOW_ALL_CORS)
4242
endif()
4343

44+
if(NOT DEFINED NITRO_VERSION)
45+
set(NITRO_VERSION "default_version")
46+
endif()
47+
48+
add_compile_definitions(NITRO_VERSION="${NITRO_VERSION}")
49+
4450
add_subdirectory(llama.cpp)
4551
add_executable(${PROJECT_NAME} main.cc)
4652

@@ -71,11 +77,10 @@ aux_source_directory(controllers CTL_SRC)
7177
# aux_source_directory(filters FILTER_SRC) aux_source_directory(plugins
7278
# PLUGIN_SRC) aux_source_directory(models MODEL_SRC)
7379

74-
#drogon_create_views(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/views
75-
# ${CMAKE_CURRENT_BINARY_DIR})
76-
# use the following line to create views with namespaces.
7780
# drogon_create_views(${PROJECT_NAME} ${CMAKE_CURRENT_SOURCE_DIR}/views
78-
# ${CMAKE_CURRENT_BINARY_DIR} TRUE)
81+
# ${CMAKE_CURRENT_BINARY_DIR}) use the following line to create views with
82+
# namespaces. drogon_create_views(${PROJECT_NAME}
83+
# ${CMAKE_CURRENT_SOURCE_DIR}/views ${CMAKE_CURRENT_BINARY_DIR} TRUE)
7984

8085
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
8186
# ${CMAKE_CURRENT_SOURCE_DIR}/models)

0 commit comments

Comments
 (0)