From 6dc3034e9c8e3420015acd48a41132c317cbc8a2 Mon Sep 17 00:00:00 2001 From: Lars Melchior Date: Sun, 19 Nov 2023 12:15:50 +0100 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e25a0e..0ab3fd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,6 +81,7 @@ function(packageProject) endif() string(TOUPPER ${PROJECT_NAME} UPPERCASE_PROJECT_NAME) + # ensure that the generated macro does not include invalid characters string(REGEX REPLACE [^a-zA-Z0-9] _ UPPERCASE_PROJECT_NAME ${UPPERCASE_PROJECT_NAME}) configure_file( ${PACKAGE_PROJECT_ROOT_PATH}/version.h.in