mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 12:58:00 +03:00
Use target_precompile_headers for the most expensive headers
This commit is contained in:
parent
8a13cde778
commit
7e6c13630a
22 changed files with 193 additions and 14 deletions
6
extern/Base64/CMakeLists.txt
vendored
6
extern/Base64/CMakeLists.txt
vendored
|
@ -1,2 +1,6 @@
|
|||
add_library(Base64 INTERFACE)
|
||||
target_include_directories(Base64 INTERFACE .)
|
||||
target_include_directories(Base64 INTERFACE .)
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16 AND MSVC)
|
||||
target_precompile_headers(Base64 INTERFACE <string>)
|
||||
endif()
|
||||
|
|
4
extern/CMakeLists.txt
vendored
4
extern/CMakeLists.txt
vendored
|
@ -241,6 +241,10 @@ if (NOT OPENMW_USE_SYSTEM_YAML_CPP)
|
|||
SOURCE_DIR fetched/yaml-cpp
|
||||
)
|
||||
FetchContent_MakeAvailableExcludeFromAll(yaml-cpp)
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16 AND MSVC)
|
||||
target_precompile_headers(yaml-cpp PRIVATE <algorithm>)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if (NOT OPENMW_USE_SYSTEM_ICU)
|
||||
|
|
4
extern/oics/CMakeLists.txt
vendored
4
extern/oics/CMakeLists.txt
vendored
|
@ -19,3 +19,7 @@ else()
|
|||
)
|
||||
target_link_libraries(oics local_tinyxml)
|
||||
endif()
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16 AND MSVC)
|
||||
target_precompile_headers(oics PUBLIC <algorithm> <string>)
|
||||
endif()
|
||||
|
|
10
extern/osg-ffmpeg-videoplayer/CMakeLists.txt
vendored
10
extern/osg-ffmpeg-videoplayer/CMakeLists.txt
vendored
|
@ -16,3 +16,13 @@ target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} ${FFmpeg_LIBRARIES})
|
|||
target_link_libraries(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} ${OSG_LIBRARIES})
|
||||
|
||||
link_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16 AND MSVC)
|
||||
target_precompile_headers(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} PUBLIC
|
||||
<memory>
|
||||
<string>
|
||||
<vector>
|
||||
)
|
||||
|
||||
target_precompile_headers(${OSG_FFMPEG_VIDEOPLAYER_LIBRARY} PRIVATE <algorithm>)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue