Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ endif()
# Custom default install location.
if(BUILD_DLL)
get_filename_component(DLL_INSTALL_PREFIX "[HKEY_LOCAL_MACHINE\\SOFTWARE\\Electronic Arts\\EA Games\\Command and Conquer Generals Zero Hour;InstallPath]" ABSOLUTE CACHE)
if(MSVC)
# Include INSTALL to build by default. This copies dll's and pdb's to game directory.
set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
endif()
endif()

if(WIN32 OR "${CMAKE_SYSTEM}" MATCHES "Windows")
Expand Down
3 changes: 1 addition & 2 deletions tools/build/win_scripts/vs_create_solution.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ cd /d "%SolutionDir%"
"%CMakeDir%\bin\cmake.exe" ^
-G "%GeneratorName%" ^
-A Win32 ^
-S "%ProjectDir%" ^
-DCMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD=1
-S "%ProjectDir%"

cd /d "%cd%"
:: Open cmake gui for user customizations
Expand Down