mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Merge branch 'msvc-only-precompile' into 'master'
Only precompile headers with MSVC See merge request OpenMW/openmw!1467
This commit is contained in:
commit
3baf966219
@ -155,7 +155,7 @@ target_link_libraries(openmw
|
||||
components
|
||||
)
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16)
|
||||
if (MSVC AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.16)
|
||||
target_precompile_headers(openmw PRIVATE ${SOL_INCLUDE_DIR}/sol/sol.hpp)
|
||||
endif ()
|
||||
|
||||
|
@ -373,6 +373,6 @@ if(USE_QT)
|
||||
set_property(TARGET components_qt PROPERTY AUTOMOC ON)
|
||||
endif(USE_QT)
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16)
|
||||
if (MSVC AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.16)
|
||||
target_precompile_headers(components PRIVATE ${SOL_INCLUDE_DIR}/sol/sol.hpp)
|
||||
endif ()
|
||||
|
Loading…
Reference in New Issue
Block a user