From 458d37d0e2bbf71e4a4542e110a4fbe2df578295 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Sun, 24 May 2015 00:44:42 +0200 Subject: [PATCH] Always use lower case module name in generated files --- support/cmake/module_definition.cmake | 2 +- support/cmake/support_macros.cmake | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/support/cmake/module_definition.cmake b/support/cmake/module_definition.cmake index 45554fc3e0..f69997c8b8 100644 --- a/support/cmake/module_definition.cmake +++ b/support/cmake/module_definition.cmake @@ -188,7 +188,7 @@ endfunction () function (write_module_name module_name) string(TOLOWER ${module_name} module_name_lower) - file(WRITE ${CMAKE_BINARY_DIR}/modules/${module_name}/modulename.cmake + file(WRITE ${CMAKE_BINARY_DIR}/modules/${module_name_lower}/modulename.cmake "set(MODULE_NAME ${module_name}Module)\n" "set(MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/${module_name_lower}module.h)" ) diff --git a/support/cmake/support_macros.cmake b/support/cmake/support_macros.cmake index 4165d5bf2c..947b7bb833 100644 --- a/support/cmake/support_macros.cmake +++ b/support/cmake/support_macros.cmake @@ -342,9 +342,10 @@ function (handle_internal_modules) # Create registration file string(TOUPPER ${module} module_upper) + string(TOLOWER ${module{ module_lower) unset(MODULE_NAME) unset(MODULE_PATH) - include(${CMAKE_BINARY_DIR}/modules/${module}/modulename.cmake) + include(${CMAKE_BINARY_DIR}/modules/${module_lower}/modulename.cmake) list(APPEND MODULE_HEADERS #"#ifdef REGISTRATION_OPENSPACE${module_upper}MODULE\n"