cmake: Don't use PCH with Qt6.

This commit is contained in:
Admiral H. Curtiss
2022-05-22 01:19:44 +02:00
parent 6ea7af13e8
commit 580c721c82
19 changed files with 90 additions and 3 deletions

View File

@ -29,3 +29,8 @@ PUBLIC
videocommon
videod3dcommon
)
if(MSVC)
# Add precompiled header
target_link_libraries(videod3d PRIVATE use_pch)
endif()

View File

@ -35,3 +35,8 @@ PUBLIC
videocommon
videod3dcommon
)
if(MSVC)
# Add precompiled header
target_link_libraries(videod3d12 PRIVATE use_pch)
endif()

View File

@ -12,3 +12,8 @@ PUBLIC
common
videocommon
)
if(MSVC)
# Add precompiled header
target_link_libraries(videod3dcommon PRIVATE use_pch)
endif()

View File

@ -17,3 +17,8 @@ PUBLIC
common
videocommon
)
if(MSVC)
# Add precompiled header
target_link_libraries(videonull PRIVATE use_pch)
endif()

View File

@ -33,3 +33,8 @@ PUBLIC
PRIVATE
${X11_LIBRARIES}
)
if(MSVC)
# Add precompiled header
target_link_libraries(videoogl PRIVATE use_pch)
endif()

View File

@ -41,3 +41,8 @@ PUBLIC
common
videocommon
)
if(MSVC)
# Add precompiled header
target_link_libraries(videosoftware PRIVATE use_pch)
endif()

View File

@ -62,3 +62,8 @@ SYSTEM PRIVATE
${CMAKE_SOURCE_DIR}/Externals/glslang/SPIRV
${CMAKE_SOURCE_DIR}/Externals/glslang
)
if(MSVC)
# Add precompiled header
target_link_libraries(videovulkan PRIVATE use_pch)
endif()