# cmake -DCMAKE_TOOLCHAIN_FILE=~/vcpkg/scripts/buildsystems/vcpkg.cmake .. --preset linux-release
Preset CMake variables:
CMAKE_BUILD_TYPE="RelWithDebInfo"
OPTIONS_ENABLE_CCACHE="ON"
-- Running vcpkg install
Detecting compiler hash for triplet x64-linux...
The following packages will be built and installed:
* boost-algorithm[core]:x64-linux -> 1.81.0#2
* boost-align[core]:x64-linux -> 1.81.0#2
* boost-array[core]:x64-linux -> 1.81.0#2
boost-asio[core]:x64-linux -> 1.81.0#2
* boost-assert[core]:x64-linux -> 1.81.0#2
* boost-atomic[core]:x64-linux -> 1.81.0#2
* boost-bind[core]:x64-linux -> 1.81.0#2
* boost-build[core]:x64-linux -> 1.81.0#3
* boost-chrono[core]:x64-linux -> 1.81.0#2
* boost-concept-check[core]:x64-linux -> 1.81.0#2
* boost-config[core]:x64-linux -> 1.81.0#2
* boost-container[core]:x64-linux -> 1.81.0#2
* boost-container-hash[core]:x64-linux -> 1.81.0#2
* boost-context[core]:x64-linux -> 1.81.0#2
* boost-conversion[core]:x64-linux -> 1.81.0#2
* boost-core[core]:x64-linux -> 1.81.0#2
* boost-coroutine[core]:x64-linux -> 1.81.0#2
* boost-date-time[core]:x64-linux -> 1.81.0#2
* boost-describe[core]:x64-linux -> 1.81.0#2
* boost-detail[core]:x64-linux -> 1.81.0#2
* boost-dynamic-bitset[core]:x64-linux -> 1.81.0#2
* boost-exception[core]:x64-linux -> 1.81.0#2
boost-filesystem[core]:x64-linux -> 1.81.0#2
* boost-function[core]:x64-linux -> 1.81.0#2
* boost-function-types[core]:x64-linux -> 1.81.0#2
* boost-functional[core]:x64-linux -> 1.81.0#2
* boost-fusion[core]:x64-linux -> 1.81.0#2
* boost-integer[core]:x64-linux -> 1.81.0#2
* boost-intrusive[core]:x64-linux -> 1.81.0#2
* boost-io[core]:x64-linux -> 1.81.0#2
boost-iostreams[bzip2,core,lzma,zlib,zstd]:x64-linux -> 1.81.0#2
* boost-iterator[core]:x64-linux -> 1.81.0#2
* boost-lexical-cast[core]:x64-linux -> 1.81.0#2
boost-lockfree[core]:x64-linux -> 1.81.0#2
* boost-modular-build-helper[core]:x64-linux -> 1.81.0#5
* boost-move[core]:x64-linux -> 1.81.0#2
* boost-mp11[core]:x64-linux -> 1.81.0#2
* boost-mpl[core]:x64-linux -> 1.81.0#2
* boost-numeric-conversion[core]:x64-linux -> 1.81.0#2
* boost-optional[core]:x64-linux -> 1.81.0#2
* boost-parameter[core]:x64-linux -> 1.81.0#2
* boost-pool[core]:x64-linux -> 1.81.0#2
* boost-predef[core]:x64-linux -> 1.81.0#2
* boost-preprocessor[core]:x64-linux -> 1.81.0#2
* boost-random[core]:x64-linux -> 1.81.0#2
* boost-range[core]:x64-linux -> 1.81.0#2
* boost-ratio[core]:x64-linux -> 1.81.0#2
* boost-rational[core]:x64-linux -> 1.81.0#2
* boost-regex[core]:x64-linux -> 1.81.0#2
* boost-smart-ptr[core]:x64-linux -> 1.81.0#2
* boost-static-assert[core]:x64-linux -> 1.81.0#2
boost-system[core]:x64-linux -> 1.81.0#2
* boost-throw-exception[core]:x64-linux -> 1.81.0#2
* boost-tokenizer[core]:x64-linux -> 1.81.0#2
* boost-tuple[core]:x64-linux -> 1.81.0#2
* boost-type-index[core]:x64-linux -> 1.81.0#2
* boost-type-traits[core]:x64-linux -> 1.81.0#2
* boost-typeof[core]:x64-linux -> 1.81.0#2
* boost-uninstall[core]:x64-linux -> 1.81.0#2
* boost-unordered[core]:x64-linux -> 1.81.0#2
* boost-utility[core]:x64-linux -> 1.81.0#2
boost-variant[core]:x64-linux -> 1.81.0#2
* boost-variant2[core]:x64-linux -> 1.81.0#2
* boost-vcpkg-helpers[core]:x64-linux -> 1.81.0#3
* boost-winapi[core]:x64-linux -> 1.81.0#2
* bzip2[core,tool]:x64-linux -> 1.0.8#3
curl[core,non-http,openssl,ssl]:x64-linux -> 7.88.1#1
* fmt[core]:x64-linux -> 9.1.0#1
gmp[core]:x64-linux -> 6.2.1#16
jsoncpp[core]:x64-linux -> 1.9.5
* liblzma[core]:x64-linux -> 5.4.1#1
libmariadb[core,mariadbclient,openssl,ssl]:x64-linux -> 3.3.1#2
luajit[core]:x64-linux -> 2023-01-04
magic-enum[core]:x64-linux -> 0.8.2
* openssl[core]:x64-linux -> 3.0.8#2
parallel-hashmap[core]:x64-linux -> 1.3.8
protobuf[core]:x64-linux -> 3.21.12
pugixml[core]:x64-linux -> 1.13.0
spdlog[core]:x64-linux -> 1.11.0
* vcpkg-cmake[core]:x64-linux -> 2022-12-22
* vcpkg-cmake-config[core]:x64-linux -> 2022-02-06#1
* vcpkg-cmake-get-vars[core]:x64-linux -> 2023-03-02
* zlib[core]:x64-linux -> 1.2.13
* zstd[core]:x64-linux -> 1.5.4#1
Additional packages (*) will be modified to complete this operation.
Restored 84 package(s) from /root/.cache/vcpkg/archives in 1.975757778 s. Use --debug to see more details.
Installing 1/84 boost-uninstall:x64-linux...
Elapsed time to handle boost-uninstall:x64-linux: 413.603 us
Installing 2/84 boost-vcpkg-helpers:x64-linux...
Elapsed time to handle boost-vcpkg-helpers:x64-linux: 532.258 us
Installing 3/84 boost-config:x64-linux...
Elapsed time to handle boost-config:x64-linux: 9.572845 ms
Installing 4/84 boost-static-assert:x64-linux...
Elapsed time to handle boost-static-assert:x64-linux: 674.275 us
Installing 5/84 boost-type-traits:x64-linux...
Elapsed time to handle boost-type-traits:x64-linux: 8.291587 ms
Installing 6/84 boost-assert:x64-linux...
Elapsed time to handle boost-assert:x64-linux: 725.129 us
Installing 7/84 boost-throw-exception:x64-linux...
Elapsed time to handle boost-throw-exception:x64-linux: 751.16 us
Installing 8/84 boost-preprocessor:x64-linux...
Elapsed time to handle boost-preprocessor:x64-linux: 20.340013 ms
Installing 9/84 boost-io:x64-linux...
Elapsed time to handle boost-io:x64-linux: 1.255508 ms
Installing 10/84 boost-core:x64-linux...
Elapsed time to handle boost-core:x64-linux: 3.189335 ms
Installing 11/84 boost-utility:x64-linux...
Elapsed time to handle boost-utility:x64-linux: 2.09529 ms
Installing 12/84 vcpkg-cmake:x64-linux...
Elapsed time to handle vcpkg-cmake:x64-linux: 1.326629 ms
Installing 13/84 boost-predef:x64-linux...
Elapsed time to handle boost-predef:x64-linux: 8.084136 ms
Installing 14/84 boost-winapi:x64-linux...
Elapsed time to handle boost-winapi:x64-linux: 5.201011 ms
Installing 15/84 boost-mp11:x64-linux...
Elapsed time to handle boost-mp11:x64-linux: 2.448849 ms
Installing 16/84 boost-variant2:x64-linux...
Elapsed time to handle boost-variant2:x64-linux: 1.400902 ms
Installing 17/84 vcpkg-cmake-get-vars:x64-linux...
Elapsed time to handle vcpkg-cmake-get-vars:x64-linux: 1.21237 ms
Installing 18/84 boost-modular-build-helper:x64-linux...
Elapsed time to handle boost-modular-build-helper:x64-linux: 1.339069 ms
Installing 19/84 boost-build:x64-linux...
Elapsed time to handle boost-build:x64-linux: 35.916962 ms
Installing 20/84 boost-system:x64-linux...
Elapsed time to handle boost-system:x64-linux: 3.150154 ms
Installing 21/84 boost-move:x64-linux...
Elapsed time to handle boost-move:x64-linux: 3.59244 ms
Installing 22/84 boost-smart-ptr:x64-linux...
Elapsed time to handle boost-smart-ptr:x64-linux: 5.247838 ms
Installing 23/84 boost-mpl:x64-linux...
Elapsed time to handle boost-mpl:x64-linux: 39.433942 ms
Installing 24/84 boost-integer:x64-linux...
Elapsed time to handle boost-integer:x64-linux: 3.135128 ms
Installing 25/84 boost-describe:x64-linux...
Elapsed time to handle boost-describe:x64-linux: 3.210683 ms
Installing 26/84 boost-container-hash:x64-linux...
Elapsed time to handle boost-container-hash:x64-linux: 3.179284 ms
Installing 27/84 boost-concept-check:x64-linux...
Elapsed time to handle boost-concept-check:x64-linux: 3.158634 ms
Installing 28/84 boost-regex:x64-linux...
Elapsed time to handle boost-regex:x64-linux: 13.213973 ms
Installing 29/84 boost-typeof:x64-linux...
Elapsed time to handle boost-typeof:x64-linux: 6.916951 ms
Installing 30/84 boost-type-index:x64-linux...
Elapsed time to handle boost-type-index:x64-linux: 3.397711 ms
Installing 31/84 boost-bind:x64-linux...
Elapsed time to handle boost-bind:x64-linux: 3.455873 ms
Installing 32/84 boost-function:x64-linux...
Elapsed time to handle boost-function:x64-linux: 3.541497 ms
Installing 33/84 boost-tuple:x64-linux...
Elapsed time to handle boost-tuple:x64-linux: 2.929461 ms
Installing 34/84 boost-exception:x64-linux...
Elapsed time to handle boost-exception:x64-linux: 3.764479 ms
Installing 35/84 boost-detail:x64-linux...
Elapsed time to handle boost-detail:x64-linux: 3.649642 ms
Installing 36/84 boost-optional:x64-linux...
Elapsed time to handle boost-optional:x64-linux: 3.570437 ms
Installing 37/84 boost-function-types:x64-linux...
Elapsed time to handle boost-function-types:x64-linux: 5.870481 ms
Installing 38/84 boost-functional:x64-linux...
Elapsed time to handle boost-functional:x64-linux: 3.288208 ms
Installing 39/84 boost-fusion:x64-linux...
Elapsed time to handle boost-fusion:x64-linux: 49.078951 ms
Installing 40/84 boost-conversion:x64-linux...
Elapsed time to handle boost-conversion:x64-linux: 3.466807 ms
Installing 41/84 boost-iterator:x64-linux...
Elapsed time to handle boost-iterator:x64-linux: 4.730764 ms
Installing 42/84 boost-tokenizer:x64-linux...
Elapsed time to handle boost-tokenizer:x64-linux: 3.564466 ms
Installing 43/84 boost-array:x64-linux...
Elapsed time to handle boost-array:x64-linux: 3.280953 ms
Installing 44/84 boost-range:x64-linux...
Elapsed time to handle boost-range:x64-linux: 9.031482 ms
Installing 45/84 boost-numeric-conversion:x64-linux...
Elapsed time to handle boost-numeric-conversion:x64-linux: 4.644567 ms
Installing 46/84 boost-intrusive:x64-linux...
Elapsed time to handle boost-intrusive:x64-linux: 7.379655 ms
Installing 47/84 boost-container:x64-linux...
Elapsed time to handle boost-container:x64-linux: 9.026759 ms
Installing 48/84 boost-lexical-cast:x64-linux...
Elapsed time to handle boost-lexical-cast:x64-linux: 4.291334 ms
Installing 49/84 boost-unordered:x64-linux...
Elapsed time to handle boost-unordered:x64-linux: 4.599652 ms
Installing 50/84 boost-algorithm:x64-linux...
Elapsed time to handle boost-algorithm:x64-linux: 6.835634 ms
Installing 51/84 boost-date-time:x64-linux...
Elapsed time to handle boost-date-time:x64-linux: 7.944407 ms
Installing 52/84 boost-pool:x64-linux...
Elapsed time to handle boost-pool:x64-linux: 4.520256 ms
Installing 53/84 boost-context:x64-linux...
Elapsed time to handle boost-context:x64-linux: 5.105833 ms
Installing 54/84 boost-coroutine:x64-linux...
Elapsed time to handle boost-coroutine:x64-linux: 5.67022 ms
Installing 55/84 boost-rational:x64-linux...
Elapsed time to handle boost-rational:x64-linux: 3.881064 ms
Installing 56/84 boost-ratio:x64-linux...
Elapsed time to handle boost-ratio:x64-linux: 4.905579 ms
Installing 57/84 boost-chrono:x64-linux...
Elapsed time to handle boost-chrono:x64-linux: 7.190863 ms
Installing 58/84 boost-align:x64-linux...
Elapsed time to handle boost-align:x64-linux: 5.818584 ms
Installing 59/84 boost-asio:x64-linux...
Elapsed time to handle boost-asio:x64-linux: 29.769801 ms
Installing 60/84 boost-atomic:x64-linux...
Elapsed time to handle boost-atomic:x64-linux: 10.409281 ms
Installing 61/84 boost-filesystem:x64-linux...
Elapsed time to handle boost-filesystem:x64-linux: 9.817374 ms
Installing 62/84 vcpkg-cmake-config:x64-linux...
Elapsed time to handle vcpkg-cmake-config:x64-linux: 4.467858 ms
Installing 63/84 zstd:x64-linux...
Elapsed time to handle zstd:x64-linux: 8.192838 ms
Installing 64/84 zlib:x64-linux...
Elapsed time to handle zlib:x64-linux: 5.151202 ms
Installing 65/84 liblzma:x64-linux...
Elapsed time to handle liblzma:x64-linux: 6.459763 ms
Installing 66/84 boost-dynamic-bitset:x64-linux...
Elapsed time to handle boost-dynamic-bitset:x64-linux: 4.87462 ms
Installing 67/84 boost-random:x64-linux...
Elapsed time to handle boost-random:x64-linux: 8.217599 ms
Installing 68/84 bzip2:x64-linux...
Elapsed time to handle bzip2:x64-linux: 5.540009 ms
Installing 69/84 boost-iostreams:x64-linux...
Elapsed time to handle boost-iostreams:x64-linux: 11.623517 ms
Installing 70/84 boost-parameter:x64-linux...
Elapsed time to handle boost-parameter:x64-linux: 8.625633 ms
Installing 71/84 boost-lockfree:x64-linux...
Elapsed time to handle boost-lockfree:x64-linux: 5.243769 ms
Installing 72/84 boost-variant:x64-linux...
Elapsed time to handle boost-variant:x64-linux: 6.18288 ms
Installing 73/84 openssl:x64-linux...
Elapsed time to handle openssl:x64-linux: 29.324232 ms
Installing 74/84 curl:x64-linux...
Elapsed time to handle curl:x64-linux: 11.591418 ms
Installing 75/84 gmp:x64-linux...
Elapsed time to handle gmp:x64-linux: 8.855384 ms
Installing 76/84 jsoncpp:x64-linux...
Elapsed time to handle jsoncpp:x64-linux: 9.238026 ms
Installing 77/84 libmariadb:x64-linux...
Elapsed time to handle libmariadb:x64-linux: 39.142088 ms
Installing 78/84 luajit:x64-linux...
Elapsed time to handle luajit:x64-linux: 14.241415 ms
Installing 79/84 magic-enum:x64-linux...
Elapsed time to handle magic-enum:x64-linux: 5.300445 ms
Installing 80/84 parallel-hashmap:x64-linux...
Elapsed time to handle parallel-hashmap:x64-linux: 5.736145 ms
Installing 81/84 protobuf:x64-linux...
Elapsed time to handle protobuf:x64-linux: 267.180946 ms
Installing 82/84 pugixml:x64-linux...
Elapsed time to handle pugixml:x64-linux: 11.070368 ms
Installing 83/84 fmt:x64-linux...
Elapsed time to handle fmt:x64-linux: 47.130303 ms
Installing 84/84 spdlog:x64-linux...
Elapsed time to handle spdlog:x64-linux: 39.373245 ms
Total install time: 2.967028194 s
The package boost is compatible with built-in CMake targets:
find_package(Boost REQUIRED [COMPONENTS <libs>...])
target_link_libraries(main PRIVATE Boost::boost Boost::<lib1> Boost::<lib2> ...)
curl provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(CURL CONFIG REQUIRED)
target_link_libraries(main PRIVATE CURL::libcurl)
The package gmp can be imported via CMake FindPkgConfig module:
# gmp
find_package(PkgConfig REQUIRED)
pkg_check_modules(gmp REQUIRED IMPORTED_TARGET gmp)
target_link_libraries(main PkgConfig::gmp)
# gmpxx
find_package(PkgConfig REQUIRED)
pkg_check_modules(gmpxx REQUIRED IMPORTED_TARGET gmpxx)
target_link_libraries(main PkgConfig::gmpxx)
jsoncpp provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(jsoncpp CONFIG REQUIRED)
target_link_libraries(main PRIVATE JsonCpp::JsonCpp)
libmariadb provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(unofficial-libmariadb CONFIG REQUIRED)
target_link_libraries(main PRIVATE unofficial::libmariadb unofficial::mariadbclient)
magic-enum provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(magic_enum CONFIG REQUIRED)
target_link_libraries(main PRIVATE magic_enum::magic_enum)
parallel-hashmap is header-only and can be used from CMake via:
find_path(PARALLEL_HASHMAP_INCLUDE_DIRS "parallel_hashmap/btree.h")
target_include_directories(main PRIVATE ${PARALLEL_HASHMAP_INCLUDE_DIRS})
protobuf provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(protobuf CONFIG REQUIRED)
target_link_libraries(main PRIVATE protobuf::libprotoc protobuf::libprotobuf protobuf::libprotobuf-lite)
pugixml provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(pugixml CONFIG REQUIRED)
target_link_libraries(main PRIVATE pugixml::static pugixml:

ugixml)
spdlog provides CMake targets:
# this is heuristically generated, and may not be correct
find_package(spdlog CONFIG REQUIRED)
target_link_libraries(main PRIVATE spdlog::spdlog spdlog::spdlog_header_only)
-- Running vcpkg install - done
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Enabled: ccache
-- Enabled: ipo
-- Found Protobuf: /root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/lib/libprotobuf.a (found version "3.21.12")
-- Compiler: GCC - Version: 11.3.0
-- Enabled: openmp
-- Found OpenMP_C: -fopenmp (found version "4.5")
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Disabled: asan
-- Disabled: DEBUG LOG
-- Found Threads: TRUE
-- Found LuaJIT: /root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/lib/../lib/libluajit-5.1.a
-- Found GMP: /root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/lib/libgmp.a
-- Found Boost: /root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/include (found version "1.81.0") found components: system filesystem iostreams date_time regex
-- Found OpenSSL: /root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/lib/libcrypto.a (found suitable version "3.0.8", minimum required is "3")
-- Found ZLIB: optimized;/root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/lib/libz.a;debug;/root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/debug/lib/libz.a (found suitable version "1.2.13", minimum required is "1")
-- Found ZLIB: optimized;/root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/lib/libz.a;debug;/root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/debug/lib/libz.a (found version "1.2.13")
-- Found OpenSSL: /root/canary_otservbr_13.10/build/linux-release/vcpkg_installed/x64-linux/lib/libcrypto.a (found version "3.0.8")
-- Configuring done (6.1s)
-- Generating done (0.0s)
-- Build files have been written to: /root/canary_otservbr_13.10/build/linux-release
root@kubakos:~/canary_otservbr_13.10/build# cmake --build linux-release
[4/146] Building CXX object src/CMakeFiles/canary.dir/creatures/appearance/outfit/outfit.cpp.o