mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-10 05:32:18 -06:00
Always use lower case module name in generated files
This commit is contained in:
@@ -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)"
|
||||
)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user