mirror of https://github.com/PCSX2/pcsx2.git
CMake: Don't compile PrecompiledHeader.cpp
This commit is contained in:
parent
4608579c31
commit
59949c50d3
|
@ -131,6 +131,8 @@ target_sources(common PRIVATE
|
|||
Darwin/DarwinMisc.h
|
||||
)
|
||||
|
||||
set_source_files_properties(PrecompiledHeader.cpp PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
||||
if(USE_VTUNE)
|
||||
target_link_libraries(common PUBLIC Vtune::Vtune)
|
||||
endif()
|
||||
|
|
|
@ -179,6 +179,7 @@ target_sources(pcsx2-qt PRIVATE
|
|||
file(GLOB TS_FILES ${CMAKE_CURRENT_SOURCE_DIR}/Translations/*.ts)
|
||||
|
||||
target_precompile_headers(pcsx2-qt PRIVATE PrecompiledHeader.h)
|
||||
set_source_files_properties(PrecompiledHeader.cpp PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
|
||||
target_include_directories(pcsx2-qt PRIVATE
|
||||
${Qt6Gui_PRIVATE_INCLUDE_DIRS}
|
||||
|
|
|
@ -1188,6 +1188,7 @@ target_compile_definitions(PCSX2_FLAGS INTERFACE
|
|||
XBYAK_NO_EXCEPTION
|
||||
)
|
||||
|
||||
set_source_files_properties(PrecompiledHeader.cpp PROPERTIES HEADER_FILE_ONLY TRUE)
|
||||
if(COMMAND target_precompile_headers)
|
||||
message("Using precompiled headers.")
|
||||
target_precompile_headers(PCSX2_FLAGS INTERFACE PrecompiledHeader.h)
|
||||
|
|
Loading…
Reference in New Issue