CMake: Only copy build_info.txt if autoupdate is enabled
This commit is contained in:
@@ -390,7 +390,7 @@ elseif(WIN32)
|
|||||||
)
|
)
|
||||||
configure_file(
|
configure_file(
|
||||||
"${CMAKE_CURRENT_SOURCE_DIR}/build_info.txt.in"
|
"${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")
|
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"
|
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.
|
# 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_target_property(MOC_EXECUTABLE_LOCATION Qt6::moc IMPORTED_LOCATION)
|
||||||
get_filename_component(QT_BINARY_DIRECTORY "${MOC_EXECUTABLE_LOCATION}" DIRECTORY)
|
get_filename_component(QT_BINARY_DIRECTORY "${MOC_EXECUTABLE_LOCATION}" DIRECTORY)
|
||||||
|
|||||||
Reference in New Issue
Block a user