Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

find_package(yaml-cpp) doesn't build on Visual Studio 2022 #1342

Open
wb6ece opened this issue Jan 29, 2025 · 0 comments
Open

find_package(yaml-cpp) doesn't build on Visual Studio 2022 #1342

wb6ece opened this issue Jan 29, 2025 · 0 comments

Comments

@wb6ece
Copy link

wb6ece commented Jan 29, 2025

CMake generation started for configuration: 'x64-Debug'.
1> Command line: "C:\WINDOWS\system32\cmd.exe" /c "%SYSTEMROOT%\System32\chcp.com 65001 >NUL && "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\CMake\bin\cmake.exe" -G "Ninja" -DCMAKE_BUILD_TYPE:STRING="Debug" -DCMAKE_INSTALL_PREFIX:PATH="C:\Repos<my project>\out\install\x64-Debug" -DCMAKE_C_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe" -DCMAKE_CXX_COMPILER:FILEPATH="C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe" -DCMAKE_MAKE_PROGRAM="C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\CMAKE\Ninja\ninja.exe" "C:/\Repos<my project>" 2>&1"
1> Working directory: C:/\Repos<my project>r\out\build\x64-Debug
1> [CMake] CMake Error at C:/source/repos/yaml-cpp/out/build/x64-Debug/yaml-cpp-config.cmake:41 (include):
1> [CMake] include could not find requested file:
1> [CMake]
1> [CMake] C://repos/yaml-cpp/out/build/x64-Debug/yaml-cpp-targets.cmake

yaml-cpp built from github clone. 'install' was run and completed successfully.

CMakeLists.txt:
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_DEBUG "-fsanitize=address -fsanitize=undefined -g")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wpedantic")

find_package(yaml-cpp REQUIRED)

@wb6ece wb6ece changed the title find_package(yaml-cpp) doesn't build on Visual Studio 2922 find_package(yaml-cpp) doesn't build on Visual Studio 2022 Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant