L-Leite / cso2-launcher

A custom launcher for CSO2
MIT License
111 stars 54 forks source link

Visual Studio 2019 Build Error #87

Closed yusuflq closed 4 years ago

yusuflq commented 4 years ago

PS D:\CSO2Launcher> cmake -G "Visual Studio 16 2019" ./ CMake Error: The current CMakeCache.txt directory D:/CSO2Launcher/CMakeCache.txt is different than the directory d:/CSO2Launcher/cso2-launcher where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt PS D:\CSO2Launcher> cd D:\CSO2Launcher\cso2-launcher PS D:\CSO2Launcher\cso2-launcher> cmake -G "Visual Studio 16 2019" ./ CMake Error at CMakeLists.txt:7 (project): Generator

Visual Studio 16 2019

could not find any instance of Visual Studio.

-- Configuring incomplete, errors occurred! See also "D:/CSO2Launcher/cso2-launcher/CMakeFiles/CMakeOutput.log". PS D:\CSO2Launcher\cso2-launcher>-

L-Leite commented 4 years ago

If you have Visual Studio 2019 installed, try opening the Visual Studio Command Prompt (x86), and run the same command

yusuflq commented 4 years ago

I found the solution, thanks <3 Open Visual Studio Go to Tools -> Get Tools and Features In the "Workloads" tab enable "Desktop development with C++" Click Modify at the bottom right