File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -60,11 +60,9 @@ else()
6060endif ()
6161
6262if (NOT SW_VERSION)
63- set (SW_VERSION "UNKNOWN " )
63+ message (WARNING "Version unset, using hardcoded! " )
6464endif ()
6565
66- message (STATUS "Version is set to: ${SW_VERSION} " )
67-
6866# LIBRARY DEPENDENCIES
6967
7068find_path (LIBCARES_INCLUDE_DIR ares.h)
@@ -110,9 +108,12 @@ set_property(TARGET ${TARGET_NAME} PROPERTY C_STANDARD 11)
110108
111109define_file_basename_for_sources("https_dns_proxy" )
112110
113- set_source_files_properties (
114- src/options .c
115- PROPERTIES COMPILE_FLAGS "-DSW_VERSION='\" ${SW_VERSION} \" '" )
111+
112+ if (SW_VERSION)
113+ set_source_files_properties (
114+ src/options .c
115+ PROPERTIES COMPILE_FLAGS "-DSW_VERSION='\" ${SW_VERSION} \" '" )
116+ endif ()
116117
117118if (CLANG_TIDY_EXE)
118119 set_target_properties (
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const char * options_sw_version() {
2222#ifdef SW_VERSION
2323 return SW_VERSION ;
2424#else
25- return "UNKNOWN" ;
25+ return "2023.01.01-atLeast" ; // update date sometimes, like 1-2 times a year
2626#endif
2727}
2828
You can’t perform that action at this time.
0 commit comments