From 0f1930ece5c20b471bd42bf0656a7ebd15165a20 Mon Sep 17 00:00:00 2001 From: tintinhamans <5984296+tintinhamans@users.noreply.github.com> Date: Sat, 25 Oct 2025 03:37:31 +0200 Subject: [PATCH] build(cmake): Add notice message for missing install path in registry for Generals and Zero Hour Signed-off-by: tintinhamans <5984296+tintinhamans@users.noreply.github.com> --- Generals/CMakeLists.txt | 4 ++++ GeneralsMD/CMakeLists.txt | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Generals/CMakeLists.txt b/Generals/CMakeLists.txt index 7953714f5a9..964cb375bf4 100644 --- a/Generals/CMakeLists.txt +++ b/Generals/CMakeLists.txt @@ -69,4 +69,8 @@ if(RTS_INSTALL_PREFIX_GENERALS AND NOT "${RTS_INSTALL_PREFIX_GENERALS}" STREQUAL install(TARGETS g_w3dview RUNTIME DESTINATION "${RTS_INSTALL_PREFIX_GENERALS}") install(FILES $ DESTINATION "${RTS_INSTALL_PREFIX_GENERALS}" OPTIONAL) endif() +else() + message(STATUS "Generals install path not found. Registry keys for 'Generals' not found. " + "Generals targets will be built, but not installed. " + "You can specify the path manually by setting RTS_INSTALL_PREFIX_GENERALS.") endif() diff --git a/GeneralsMD/CMakeLists.txt b/GeneralsMD/CMakeLists.txt index d7d20ea93a6..9c21d488871 100644 --- a/GeneralsMD/CMakeLists.txt +++ b/GeneralsMD/CMakeLists.txt @@ -63,7 +63,7 @@ if(RTS_INSTALL_PREFIX_ZEROHOUR AND NOT "${RTS_INSTALL_PREFIX_ZEROHOUR}" STREQUAL install(TARGETS z_mapcachebuilder RUNTIME DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}") install(FILES $ DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}" OPTIONAL) endif() - + if(TARGET z_w3dview) install(TARGETS z_w3dview RUNTIME DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}") install(FILES $ DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}" OPTIONAL) @@ -73,4 +73,8 @@ if(RTS_INSTALL_PREFIX_ZEROHOUR AND NOT "${RTS_INSTALL_PREFIX_ZEROHOUR}" STREQUAL install(TARGETS z_wdump RUNTIME DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}") install(FILES $ DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}" OPTIONAL) endif() +else() + message(STATUS "Zero Hour install path not found. Registry keys for 'Command and Conquer Generals Zero Hour' not found. " + "Zero Hour targets will be built, but not installed. " + "You can specify the path manually by setting RTS_INSTALL_PREFIX_ZEROHOUR.") endif()