parser CHANGE compile flag enabled_cache updated

Enables caching of some information, which
increases space complexity but improves time.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 13d1b9d..4c1a600 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,7 +14,15 @@
 set(LIBYANG_MICRO_VERSION 27)
 set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION})
 set(LIBYANG_SOVERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION})
-configure_file(${PROJECT_SOURCE_DIR}/src/libyang.h.in ${PROJECT_SOURCE_DIR}/src/libyang.h)
+
+option(ENABLE_CACHE "Enable schema caching (time-efficient at the cost of increased space-complexity)" OFF)
+if(ENABLE_CACHE)
+    set(ENABLE_CACHE_MACRO "/**\n * @brief Cache of some temporary information will be used.\n */\n#define LY_ENABLED_CACHE")
+else()
+    set(ENABLE_CACHE_MACRO "/**\n * @brief Cache of some temporary information will not be used.\n */")
+endif()
+
+configure_file(${PROJECT_SOURCE_DIR}/src/libyang.h.in ${PROJECT_SOURCE_DIR}/src/libyang.h @ONLY)
 
 if(PLUGINS_DIR)
 	set(LIBYANG_EXT_PLUGINS_DIR ${PLUGINS_DIR})
@@ -133,13 +141,6 @@
 	option(ENABLE_VALGRIND_TESTS "Build tests with valgrind" OFF)
 endif()
 
-option(ENABLE_CACHE "Enable schema caching (time-efficient at the cost of increased space-complexity)" OFF)
-if(ENABLE_CACHE)
-    set(ENABLE_CACHE_MACRO "#define LY_ENABLED_CACHE")
-endif()
-
-configure_file("src/common.h.in" "src/common.h" @ONLY)
-
 set(libsrc
 	src/common.c
 	src/context.c