You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Windows 10 Pro, version: 20H2, Windows Feature Experience Pack 120.2212.4170.0
Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30140 for x64
To Reproduce
Install leveldb using
.\vcpkg.exe install leveldb:x64-windows-static
After that I created a very simple hello world project that just prints "HelloWorld". My build fails when linking leveldb::leveldb. Below is my CMakeLists.txt file.
# CMakeList.txt : CMake project for testleveldb, include source and define
# project specific logic here.
#
cmake_minimum_required (VERSION 3.18)
project ("testleveldb")
# Add source to this project's executable.
add_executable (testleveldb "testleveldb.cpp" "testleveldb.h")
# TODO: Add tests and install targets if needed.
find_package(leveldb CONFIG REQUIRED)
target_link_libraries(testleveldb PRIVATE leveldb::leveldb)
Failure logs
When I try to build the project using visual studio 2019 this is what I get
1> [CMake] -- Configuring done
1> [CMake] CMake Error at /Users/xyz/vcpkg/scripts/buildsystems/vcpkg.cmake:558 (_add_executable):
1> [CMake] Target "testleveldb" links to target "Threads::Threads" but the target was
1> [CMake] not found. Perhaps a find_package() call is missing for an IMPORTED
1> [CMake] target, or an ALIAS target is missing?
1> [CMake] Call Stack (most recent call first):
1> [CMake] CMakeLists.txt:9 (add_executable)
1> [CMake] -- Generating done
1> [CMake] CMake Generate step failed. Build files cannot be regenerated correctly.
Additional context
I've tested with
cmake-3.20.21032501-MSVC_2
cmake-3.22.2-windows-x86_64
In both situation I got the same result.
The text was updated successfully, but these errors were encountered:
Host Environment
To Reproduce
Install leveldb using
After that I created a very simple hello world project that just prints "HelloWorld". My build fails when linking
leveldb::leveldb
. Below is myCMakeLists.txt
file.And here is my
CMakeSettings.json
Failure logs
When I try to build the project using visual studio 2019 this is what I get
Additional context
I've tested with
In both situation I got the same result.
The text was updated successfully, but these errors were encountered: