mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 13:27:45 -07:00
cmake: Don't use PCH with Qt6.
This commit is contained in:
parent
6ea7af13e8
commit
580c721c82
@ -83,3 +83,8 @@ PRIVATE
|
|||||||
cubeb
|
cubeb
|
||||||
SoundTouch
|
SoundTouch
|
||||||
FreeSurround)
|
FreeSurround)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(audiocommon PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -311,8 +311,7 @@ endif()
|
|||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# Add precompiled header
|
# Add precompiled header
|
||||||
# it will propergate down to everything that depends on common
|
target_link_libraries(common PRIVATE use_pch)
|
||||||
target_link_libraries(common PUBLIC use_pch)
|
|
||||||
|
|
||||||
# We need to disable PCH for this one file, because it's C and our PCH is C++
|
# We need to disable PCH for this one file, because it's C and our PCH is C++
|
||||||
set_source_files_properties(
|
set_source_files_properties(
|
||||||
|
@ -702,3 +702,8 @@ if(UNIX)
|
|||||||
MemoryWatcher.h
|
MemoryWatcher.h
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(core PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -77,3 +77,8 @@ PRIVATE
|
|||||||
pugixml
|
pugixml
|
||||||
ZLIB::ZLIB
|
ZLIB::ZLIB
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(discio PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -26,6 +26,11 @@ PRIVATE
|
|||||||
cpp-optparse
|
cpp-optparse
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(dolphin-nogui PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(USE_DISCORD_PRESENCE)
|
if(USE_DISCORD_PRESENCE)
|
||||||
target_compile_definitions(dolphin-nogui PRIVATE -DUSE_DISCORD_PRESENCE)
|
target_compile_definitions(dolphin-nogui PRIVATE -DUSE_DISCORD_PRESENCE)
|
||||||
endif()
|
endif()
|
||||||
|
@ -396,6 +396,9 @@ if (MSVC)
|
|||||||
# Qt6 requires RTTI
|
# Qt6 requires RTTI
|
||||||
remove_cxx_flag_from_target(dolphin-emu "/GR-")
|
remove_cxx_flag_from_target(dolphin-emu "/GR-")
|
||||||
target_compile_options(dolphin-emu PRIVATE "/GR")
|
target_compile_options(dolphin-emu PRIVATE "/GR")
|
||||||
|
else()
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(audiocommon PRIVATE use_pch)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -19,5 +19,10 @@ PRIVATE
|
|||||||
cpp-optparse
|
cpp-optparse
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(dolphin-tool PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-tool)
|
set(CPACK_PACKAGE_EXECUTABLES ${CPACK_PACKAGE_EXECUTABLES} dolphin-tool)
|
||||||
install(TARGETS dolphin-tool RUNTIME DESTINATION ${bindir})
|
install(TARGETS dolphin-tool RUNTIME DESTINATION ${bindir})
|
||||||
|
@ -205,3 +205,8 @@ if(ENABLE_SDL)
|
|||||||
message(STATUS "SDL NOT found, disabling SDL input")
|
message(STATUS "SDL NOT found, disabling SDL input")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(inputcommon PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -68,3 +68,8 @@ if(USE_DISCORD_PRESENCE)
|
|||||||
target_compile_definitions(uicommon PRIVATE -DUSE_DISCORD_PRESENCE)
|
target_compile_definitions(uicommon PRIVATE -DUSE_DISCORD_PRESENCE)
|
||||||
target_link_libraries(uicommon PRIVATE discord-rpc)
|
target_link_libraries(uicommon PRIVATE discord-rpc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(uicommon PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -10,4 +10,9 @@ target_link_libraries(updatercommon PRIVATE
|
|||||||
ZLIB::ZLIB
|
ZLIB::ZLIB
|
||||||
ed25519
|
ed25519
|
||||||
cpp-optparse
|
cpp-optparse
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(updatercommon PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -29,3 +29,8 @@ PUBLIC
|
|||||||
videocommon
|
videocommon
|
||||||
videod3dcommon
|
videod3dcommon
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(videod3d PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -35,3 +35,8 @@ PUBLIC
|
|||||||
videocommon
|
videocommon
|
||||||
videod3dcommon
|
videod3dcommon
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(videod3d12 PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -12,3 +12,8 @@ PUBLIC
|
|||||||
common
|
common
|
||||||
videocommon
|
videocommon
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(videod3dcommon PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -17,3 +17,8 @@ PUBLIC
|
|||||||
common
|
common
|
||||||
videocommon
|
videocommon
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(videonull PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -33,3 +33,8 @@ PUBLIC
|
|||||||
PRIVATE
|
PRIVATE
|
||||||
${X11_LIBRARIES}
|
${X11_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(videoogl PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -41,3 +41,8 @@ PUBLIC
|
|||||||
common
|
common
|
||||||
videocommon
|
videocommon
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(videosoftware PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -62,3 +62,8 @@ SYSTEM PRIVATE
|
|||||||
${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV
|
${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV
|
||||||
${CMAKE_SOURCE_DIR}/Externals/glslang
|
${CMAKE_SOURCE_DIR}/Externals/glslang
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(videovulkan PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -180,3 +180,8 @@ if(FFmpeg_FOUND)
|
|||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(videocommon PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
@ -12,3 +12,8 @@ target_link_libraries(winupdater PRIVATE
|
|||||||
)
|
)
|
||||||
|
|
||||||
set_target_properties(winupdater PROPERTIES OUTPUT_NAME "Updater")
|
set_target_properties(winupdater PROPERTIES OUTPUT_NAME "Updater")
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
|
# Add precompiled header
|
||||||
|
target_link_libraries(winupdater PRIVATE use_pch)
|
||||||
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user