yaml-cpp
yaml-cpp copied to clipboard
how to compile on windows x64
i use cmake to configure and generate a vs 2017 project. than i compile the project x64 but many errors : "Error C2220 warning treated as error - no 'object' file generated", "The command "setlocal", "Error LNK1104 cannot open file 'gtest-1.8.0\googlemock\Debug\gmock.lib'". anyone know how to do?
Try defining gtest_disable_pthreads to ON when your configure your CMake build.
Better yet, see #566.
On windows, yaml-cpp compiles inside program files (x86) folder. Run visual studio with admin privileges and then build install. It solved the setlocal error for me. P.S this solution only solves the setlocal error. I excluded the build test in cmake gui configuration.