Kaynağa Gözat

Set default logging level, for maximum loggaging.

Directions on changing from Debug/Release builds.
bugz 5 yıl önce
ebeveyn
işleme
20229f4f12
2 değiştirilmiş dosya ile 10 ekleme ve 0 silme
  1. 1 0
      CMakeLists.txt
  2. 9 0
      README.md

+ 1 - 0
CMakeLists.txt

@@ -48,6 +48,7 @@ add_subdirectory(zf_log)
 add_executable(mystic mystic.c)
 target_link_libraries(mystic util)
 target_link_libraries(mystic zf_log)
+target_compile_definitions(mystic PUBLIC ZF_LOG_DEF_LEVEL=ZF_LOG_VERBOSE)
 
 add_executable(try-re try-re.c)
 

+ 9 - 0
README.md

@@ -13,4 +13,13 @@ codium clang-format extension
 
 apt install clang-format
 
+# Build a "release" build
+
+cmake -DCMAKE_BUILD_TYPE=Release .
+make
+
+# To switch back to "debug" build
+
+cmake -DCMAKE_BUILD_TYPE=Debug .
+make