E
E
Evgeny Petryaev2020-07-07 18:25:48
CMake
Evgeny Petryaev, 2020-07-07 18:25:48

Smake issue in vs 2019?

I opened the Folder in Sun2019 and I get this error:
Severity Code Description Project File Line Suppression State
Error CMake Error at C:/vcpkg-2020.04/vcpkg-2020.04/scripts/buildsystems/vcpkg.cmake:329 (_find_package):
Could not find a package configuration file provided by "nlohmann_json"
with any of the following names:

nlohmann_jsonConfig.cmake
nlohmann_json-config.cmake

Add the installation prefix of "nlohmann_json" to CMAKE_PREFIX_PATH or set
"nlohmann_json_DIR" to a directory containing one of the above files. If
"nlohmann_json" provides a separate development package or SDK, be sure it
has been installed. C:/vcpkg-2020.04/vcpkg-2020.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Evgeny Petryaev, 2020-07-07
@Gremlin92

Fixed by specifying nlohmann_json environment variable: C:\vcpkg-2020.04\vcpkg-2020.04\installed\x64-windows

R
res2001, 2020-07-07
@res2001

Cmake cannot find the nlohmann_json package. Install it in vcpkg with your hands, it should be there in the ports.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question