Fix the spacing for the App Name.

Fix the spacing for the App Name.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6b7b757..94d6861 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -16,6 +16,9 @@ set( GAME_APP_NAME "" CACHE            STRING "The Application name")
 set( GAME_APP_VERSION "" CACHE         STRING "The Application version")
 set( GAME_APP_STAGE "" CACHE           STRING "The Application stage")
 
+string( REPLACE " " "" GAME_APP_NAME_UPPER ${GAME_APP_NAME} )
+string( TOLOWER ${GAME_APP_NAME} GAME_APP_NAME_LOWER )
+
 if("${GAME_APP_NAME}" STREQUAL "")
 	message(FATAL_ERROR "Please set GAME_APP_NAME first")
 endif()
@@ -599,7 +602,7 @@ elseif( UNIX )
 	set_property( TARGET client APPEND PROPERTY COMPILE_DEFINITIONS NDEBUG __LINUX__ __linux__ __amd64__ __x86_64__ LINUX __STDC_CONSTANT_MACROS )
 endif()
   
-	set_target_properties( client PROPERTIES OUTPUT_NAME "${GAME_APP_NAME}.${BUILD_ARCH}" PREFIX "" LINKER_LANGUAGE CXX )
+	set_target_properties( client PROPERTIES OUTPUT_NAME "${GAME_APP_NAME_UPPER}.${BUILD_ARCH}" PREFIX "" LINKER_LANGUAGE CXX )
 
 if( MSVC )
 	set_target_properties( client PROPERTIES LINK_FLAGS  /SUBSYSTEM:CONSOLE )
@@ -624,7 +627,7 @@ if( BUILD_SERVER )
 
 	target_precompile_headers( server PRIVATE "${MOUNT_DIR}/null/null_serverprecompiled.h" )
 	
-	set_target_properties( server PROPERTIES OUTPUT_NAME "${GAME_APP_NAME}ded.${BUILD_ARCH}" PREFIX "" LINKER_LANGUAGE CXX )
+	set_target_properties( server PROPERTIES OUTPUT_NAME "${GAME_APP_NAME_UPPER}ded.${BUILD_ARCH}" PREFIX "" LINKER_LANGUAGE CXX )
 
 	# The following section finds the REQUIRED dependencies and makes them available to the target
 	find_package( SDL REQUIRED )
diff --git a/cmake/appConfig.h.in b/cmake/appConfig.h.in
index 05600a6..2fe8199 100644
--- a/cmake/appConfig.h.in
+++ b/cmake/appConfig.h.in
@@ -39,11 +39,11 @@
 #endif //!PRODUCT_STAGE
 
 #ifndef PRODUCT_NAME_UPPPER
-#define PRODUCT_NAME_UPPPER "@GAME_APP_NAME@" // Case, No spaces
+#define PRODUCT_NAME_UPPPER "@GAME_APP_NAME_UPPER@" // Case, No spaces
 #endif //!PRODUCT_NAME_UPPPER
 
 #ifndef PRODUCT_NAME_LOWER
-#define PRODUCT_NAME_LOWER "@GAME_APP_NAME@" // No case, No spaces
+#define PRODUCT_NAME_LOWER "@GAME_APP_NAME_LOWER@" // No case, No spaces
 #endif //!PRODUCT_NAME_LOWER
 
 #ifndef PRODUCT_VERSION
@@ -86,4 +86,4 @@
 #define CONFIG_NAME "owconfig.cfg"
 #endif //!CONFIG_NAME
 
-#endif //!__APPCONFIG_H__
\ No newline at end of file
+#endif //!__APPCONFIG_H__
diff --git a/src/engine/platform/Linux/systemUnix.cpp b/src/engine/platform/Linux/systemUnix.cpp
index 55fedd4..e46482c 100644
--- a/src/engine/platform/Linux/systemUnix.cpp
+++ b/src/engine/platform/Linux/systemUnix.cpp
@@ -60,9 +60,9 @@ valueType* idSystemLocal::DefaultHomePath( valueType* buffer, sint size )
         {
             Q_strncpyz( buffer, p, size );
 #ifdef MACOS_X
-            Q_strcat( buffer, size, "/Library/Application Support/" PRODUCT_NAME );
+            Q_strcat( buffer, size, "/Library/Application Support/" PRODUCT_NAME_UPPPER );
 #else
-            Q_strcat( buffer, size, "/." PRODUCT_NAME );
+            Q_strcat( buffer, size, "/." PRODUCT_NAME_UPPPER );
 #endif
         }
     }

GitHub
sha: 2e8fc964

© GrangerHub. All rights reserved. Tremulous © Darklegion Development. Granger by err-overflow and MoP licensed CC-BY-SA-2.5