Always use lower case module name in generated files

This commit is contained in:
Alexander Bock
2015-05-24 00:44:42 +02:00
parent cedf379623
commit 458d37d0e2
2 changed files with 3 additions and 2 deletions

View File

@@ -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)"
)

View File

@@ -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"