mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-18 19:32:41 +00:00
CMake: Only copy build_info.txt if autoupdate is enabled
This commit is contained in:
parent
3bb3a05f82
commit
43564d4130
@ -390,7 +390,7 @@ elseif(WIN32)
|
||||
)
|
||||
configure_file(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/build_info.txt.in"
|
||||
"${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/build_info.txt"
|
||||
"${CMAKE_BINARY_DIR}/build_info.txt"
|
||||
)
|
||||
|
||||
target_link_libraries(common PRIVATE "-INCLUDE:enableCompatPatches")
|
||||
|
||||
@ -522,6 +522,13 @@ if(WIN32)
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_CURRENT_SOURCE_DIR}/qt.conf.win" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/qt.conf"
|
||||
)
|
||||
|
||||
if (ENABLE_AUTOUPDATE)
|
||||
# Copy build_info.txt
|
||||
add_custom_command(TARGET dolphin-emu POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different "${CMAKE_BINARY_DIR}/build_info.txt" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/build_info.txt"
|
||||
)
|
||||
endif()
|
||||
|
||||
# Delegate to Qt's official deployment binary on Windows to copy over the necessary Qt-specific libraries, etc.
|
||||
get_target_property(MOC_EXECUTABLE_LOCATION Qt6::moc IMPORTED_LOCATION)
|
||||
get_filename_component(QT_BINARY_DIRECTORY "${MOC_EXECUTABLE_LOCATION}" DIRECTORY)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user