Skip to content

Commit 07244b8

Browse files
authored
build(cmake): Add status message for missing game install path (#1820)
1 parent e404977 commit 07244b8

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Generals/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,8 @@ if(RTS_INSTALL_PREFIX_GENERALS AND NOT "${RTS_INSTALL_PREFIX_GENERALS}" STREQUAL
6969
install(TARGETS g_w3dview RUNTIME DESTINATION "${RTS_INSTALL_PREFIX_GENERALS}")
7070
install(FILES $<TARGET_PDB_FILE:g_w3dview> DESTINATION "${RTS_INSTALL_PREFIX_GENERALS}" OPTIONAL)
7171
endif()
72+
else()
73+
message(STATUS "Generals install path not found. Registry keys for 'Generals' not found. "
74+
"Generals targets will be built, but not installed. "
75+
"You can specify the path manually by setting RTS_INSTALL_PREFIX_GENERALS.")
7276
endif()

GeneralsMD/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ if(RTS_INSTALL_PREFIX_ZEROHOUR AND NOT "${RTS_INSTALL_PREFIX_ZEROHOUR}" STREQUAL
6363
install(TARGETS z_mapcachebuilder RUNTIME DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}")
6464
install(FILES $<TARGET_PDB_FILE:z_mapcachebuilder> DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}" OPTIONAL)
6565
endif()
66-
66+
6767
if(TARGET z_w3dview)
6868
install(TARGETS z_w3dview RUNTIME DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}")
6969
install(FILES $<TARGET_PDB_FILE:z_w3dview> DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}" OPTIONAL)
@@ -73,4 +73,8 @@ if(RTS_INSTALL_PREFIX_ZEROHOUR AND NOT "${RTS_INSTALL_PREFIX_ZEROHOUR}" STREQUAL
7373
install(TARGETS z_wdump RUNTIME DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}")
7474
install(FILES $<TARGET_PDB_FILE:z_wdump> DESTINATION "${RTS_INSTALL_PREFIX_ZEROHOUR}" OPTIONAL)
7575
endif()
76+
else()
77+
message(STATUS "Zero Hour install path not found. Registry keys for 'Command and Conquer Generals Zero Hour' not found. "
78+
"Zero Hour targets will be built, but not installed. "
79+
"You can specify the path manually by setting RTS_INSTALL_PREFIX_ZEROHOUR.")
7680
endif()

0 commit comments

Comments
 (0)