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

Commit 63ff42c

Browse files
committed
refactor: change flag
1 parent 4a74ace commit 63ff42c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cortex-cpp/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ if(DEBUG)
3939
add_compile_definitions(ALLOW_ALL_CORS)
4040
endif()
4141

42-
if(NOT DEFINED CORTEX-CPP_VERSION)
43-
set(CORTEX-CPP_VERSION "default_version")
42+
if(NOT DEFINED CORTEX_CPP_VERSION)
43+
set(CORTEX_CPP_VERSION "default_version")
4444
endif()
4545

4646
if(APPLE)
@@ -54,7 +54,7 @@ if(APPLE)
5454
endif()
5555
endif()
5656

57-
add_compile_definitions(CORTEX-CPP_VERSION="${CORTEX-CPP_VERSION}")
57+
add_compile_definitions(CORTEX_CPP_VERSION="${CORTEX_CPP_VERSION}")
5858

5959
add_subdirectory(test)
6060

cortex-cpp/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ int main(int argc, char *argv[]) {
4646
int logical_cores = std::thread::hardware_concurrency();
4747
int drogon_thread_num = std::max(thread_num, logical_cores);
4848
cortex_utils::nitro_logo();
49-
#ifdef CORTEX-CPP_VERSION
50-
LOG_INFO << "cortex-cpp version: " << CORTEX-CPP_VERSION;
49+
#ifdef CORTEX_CPP_VERSION
50+
LOG_INFO << "cortex-cpp version: " << CORTEX_CPP_VERSION;
5151
#else
5252
LOG_INFO << "cortex-cpp version: undefined";
5353
#endif

0 commit comments

Comments
 (0)