mirror of https://github.com/PCSX2/pcsx2.git
Dep/CMake: Add yaml-cpp support to CMake
This commit is contained in:
parent
4a477244f1
commit
6e47834e8a
|
@ -268,3 +268,16 @@ if(NOT fmt_FOUND)
|
|||
else()
|
||||
message(STATUS "Found fmt: ${fmt_VERSION}")
|
||||
endif()
|
||||
|
||||
find_package(yaml-cpp "0.6.3" QUIET)
|
||||
if(NOT yaml-cpp_FOUND)
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/3rdparty/yaml-cpp/yaml-cpp/CMakeLists.txt")
|
||||
message(STATUS "No system yaml-cpp was found. Using bundled")
|
||||
add_subdirectory(3rdparty/yaml-cpp/yaml-cpp EXCLUDE_FROM_ALL)
|
||||
else()
|
||||
message(FATAL_ERROR "No system or bundled yaml-cpp was found")
|
||||
endif()
|
||||
else()
|
||||
message(STATUS "Found yaml-cpp: ${yaml-cpp_VERSION}")
|
||||
message(STATUS "Note that the latest release of yaml-cpp is very outdated, and the bundled submodule in the repo has over a year of bug fixes and as such is preferred.")
|
||||
endif()
|
||||
|
|
|
@ -112,6 +112,7 @@ set(UtilitiesFinalSources
|
|||
set(UtilitiesFinalLibs
|
||||
${LIBC_LIBRARIES} # Gold (new linux linker) does not get automatically dependency of dependency
|
||||
${wxWidgets_LIBRARIES}
|
||||
yaml-cpp
|
||||
)
|
||||
|
||||
add_pcsx2_lib(${Output} "${UtilitiesFinalSources}" "${UtilitiesFinalLibs}" "${UtilitiesFinalFlags}")
|
||||
|
|
Loading…
Reference in New Issue