mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
a12d365d60
fmt/format.h is included in the PCH, so we need to make sure fmt is actually in the include path. Not sure how Visual Studio + CMake manages to build without this.
7 lines
260 B
CMake
7 lines
260 B
CMake
add_library(pch pch.h pch.cpp)
|
|
set(PCH_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
|
|
set(PCH_NAME ${PCH.pch})
|
|
target_compile_options(pch PUBLIC /Ycpch.h /Fp${PCH_DIRECTORY}/${PCH_NAME})
|
|
# fmt/format.h is included in the PCH
|
|
target_link_libraries(pch PUBLIC fmt::fmt)
|