1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-16 15:29:55 +00:00

Only precompile headers with MSVC

This commit is contained in:
AnyOldName3 2021-12-09 14:59:17 +00:00
parent 454ddfa304
commit 221e425fe6
2 changed files with 2 additions and 2 deletions

View file

@ -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 ()

View file

@ -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 ()