mirror of
https://github.com/mikage-emu/mikage-dev.git
synced 2025-01-23 13:58:16 +01:00
Document how to prefer system packages over Conan
This commit is contained in:
parent
4e2834b77c
commit
236326fbac
2 changed files with 17 additions and 2 deletions
|
@ -34,7 +34,11 @@ add_definitions(-DBOOST_FILESYSTEM_NO_DEPRECATED -DBOOST_COROUTINES_NO_DEPRECATI
|
||||||
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fstrict-aliasing -Wpedantic -Wfatal-errors -Wdocumentation")
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fstrict-aliasing -Wpedantic -Wfatal-errors -Wdocumentation")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fstrict-aliasing -Wpedantic")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fstrict-aliasing -Wpedantic")
|
||||||
|
|
||||||
find_package(Boost 1.80.0 EXACT REQUIRED CONFIG)
|
set(BOOST_COMPONENTS context filesystem iostreams program_options thread)
|
||||||
|
find_package(Boost 1.80.0 EXACT CONFIG COMPONENTS ${BOOST_COMPONENTS})
|
||||||
|
if (NOT Boost_FOUND)
|
||||||
|
find_package(Boost 1.80.0 REQUIRED COMPONENTS ${BOOST_COMPONENTS})
|
||||||
|
endif ()
|
||||||
|
|
||||||
find_package(fmt REQUIRED)
|
find_package(fmt REQUIRED)
|
||||||
|
|
||||||
|
@ -66,7 +70,7 @@ find_package(shaderc REQUIRED)
|
||||||
#set_property(TARGET proj PROPERTY CXX_STANDARD_REQUIRED ON)
|
#set_property(TARGET proj PROPERTY CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
if(NOT ANDROID)
|
if(NOT ANDROID)
|
||||||
find_package(libunwind)
|
find_package(libunwind REQUIRED)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# TODO: find_package-ify
|
# TODO: find_package-ify
|
||||||
|
|
11
README.md
11
README.md
|
@ -13,6 +13,17 @@ The Conan install may fail if the shaderc package cannot be found. In this case,
|
||||||
download our [custom recipe from conan-3ds](https://github.com/mikage-emu/conan-3ds/tree/mikage/packages/shaderc)
|
download our [custom recipe from conan-3ds](https://github.com/mikage-emu/conan-3ds/tree/mikage/packages/shaderc)
|
||||||
and run `conan export . --version 2021.1` from within this `shaderc` folder.
|
and run `conan export . --version 2021.1` from within this `shaderc` folder.
|
||||||
|
|
||||||
|
Some dependencies may be provided by system packages instead of building them
|
||||||
|
via Conan. To enable this behavior, add the following to your Conan profile
|
||||||
|
(`~/.conan2/profiles/default`):
|
||||||
|
```
|
||||||
|
[platform_requires]
|
||||||
|
boost/1.80.0
|
||||||
|
sdl/2.0.20
|
||||||
|
range-v3/0.11.0
|
||||||
|
catch2/2.13.7
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
For the first launch, three things must be set up:
|
For the first launch, three things must be set up:
|
||||||
|
|
Loading…
Add table
Reference in a new issue