Clion stuck when load CMake project with vcpkg on Win 7 64
Hello,
I want to use vcpkg for CLion. I do as the follows
-
Go to File -> Settings -> Build, Execution, Deployment -> CMake
-
Choose one profile, and then find "CMake Options".
-
Insert value to the option:
-DCMAKE_TOOLCHAIN_FILE=<path_to_vcpkg>/scripts/buildsystems/vcpkg.cmake
However, it always stuck and only shows:
D:\Software\<Clion>\bin\cmake.exe -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=<some path>/vcpkg/scripts/buildsystems/vcpkg.cmake -G "CodeBlocks - NMake Makefiles" E:\<my project>
-- The C compiler identification is MSVC 19.16.27032.1
-- The CXX compiler identification is MSVC 19.16.27032.1
-- Check for working C compiler: D:/Software/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe
I believe Win 7 x64 is an important problem.
My configurations:
1. Windows 7 x64
2. Microsoft Visual Studio 2017 Build Tools
3. CLion 2019.3.2
I also tried to run the same command in CMD and the build is successful.
So I believe the problem is related to clion and win7.
Thanks in advance for valuable help.
请先登录再写评论。