M CMakeLists.txt +3 -3
@@ 413,7 413,7 @@ find_package(Hg)
execute_process(
COMMAND ${HG_EXECUTABLE} parent --template "{latesttag}"
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/library/
- OUTPUT_VARIABLE LIBRARY_VERSION
+ OUTPUT_VARIABLE KRONOS_CORE_LIBRARY_VERSION
RESULT_VARIABLE LIBRARY_VERSION_RESULT
OUTPUT_STRIP_TRAILING_WHITESPACE
)
@@ 444,9 444,9 @@ if (TARGET ktests)
add_dependencies(ktests hg_revision)
endif()
-set(LIBRARY_REPOSITORY "kronoslang/core" CACHE STRING "Package for the runtime library")
+set(KRONOS_CORE_LIBRARY_REPOSITORY "kronoslang/core" CACHE STRING "Package for the runtime library")
-message(STATUS "Core Library ${CMAKE_SOURCE_DIR}/library/ [${LIBRARY_REPOSITORY} ${LIBRARY_VERSION}] (${LIBRARY_VERSION_RESULT})")
+message(STATUS "Core Library ${CMAKE_SOURCE_DIR}/library/ [${KRONOS_CORE_LIBRARY_REPOSITORY} ${KRONOS_CORE_LIBRARY_VERSION}] (${LIBRARY_VERSION_RESULT})")
configure_file(corelib.h.in "${CMAKE_CURRENT_BINARY_DIR}/headers/config/corelib.h")
M corelib.h.in +4 -4
@@ 1,4 1,4 @@
-#pragma once
-#define KRONOS_CORE_LIBRARY_REPOSITORY "${LIBRARY_REPOSITORY}"
-#define KRONOS_CORE_LIBRARY_VERSION "${LIBRARY_VERSION}"
-#define KRONOS_BUILD_VERSION "${BUILD_VERSION}"
No newline at end of file
+#pragma once
+#define KRONOS_CORE_LIBRARY_REPOSITORY "${KRONOS_CORE_LIBRARY_REPOSITORY}"
+#define KRONOS_CORE_LIBRARY_VERSION "${KRONOS_CORE_LIBRARY_VERSION}"
+#define KRONOS_BUILD_VERSION "${BUILD_VERSION}"