Does Microsoft Sabotage CMake On Windows On Purpose? - /g/ (#106156995) [Archived: 267 hours ago]

Anonymous
8/6/2025, 2:00:22 AM No.106156995
cmake
cmake
md5: 160db7856a27988a331710cda0fdb8b9🔍
For the life of me I can't get CMake to build my damn project with MSYS2 installed. Visual Studio Code keeps corrupting my directories mixing unix with windows file paths. Is installing CMake for Windows the only way to get this working? Or is Microsoft sabotaging CMake on for Visual Studio Code on Windows on purpose so that you have to use their tasks.json and launch.json system?

'''CMake Error: The source directory "/c/Users/chan/Projects/Basics/build/C:/Users/chan/Projects/Basics" does not exist.'''
Replies: >>106157669 >>106158655 >>106158798 >>106158854 >>106160421
Anonymous
8/6/2025, 2:04:29 AM No.106157036
desu i was never able to troubleshoot freetard compiler on windows so i just pirate clion
Replies: >>106157352 >>106158608
Anonymous
8/6/2025, 2:07:00 AM No.106157061
The NTFS API accepts Unix file paths just fine so long as they don't contain forbidden characters or names. Read the path, the problem is you have it doubled up.
Replies: >>106157382
Anonymous
8/6/2025, 2:38:38 AM No.106157352
>>106157036
Isn't CLion free?
Replies: >>106157525 >>106157805
Anonymous
8/6/2025, 2:42:13 AM No.106157382
>>106157061
The windows api accepts forward slash. Has nothing to do with NTFS.
Replies: >>106157395
Anonymous
8/6/2025, 2:44:22 AM No.106157395
>>106157382
The NTFS API also accepts forward slash. They differ with respect to case sensitivity though. Try not to correct people on the internet when the first google result is a MSDN page proving you wrong and them right.
Replies: >>106158120
Anonymous
8/6/2025, 3:00:06 AM No.106157521
just wait for https://github.com/microsoft/vscode-cmake-tools/issues/4362
it will come eventually :) (or not)
Anonymous
8/6/2025, 3:01:16 AM No.106157525
>>106157352
no idea desu i think you still have to make an account and get datamined that way
Anonymous
8/6/2025, 3:21:01 AM No.106157669
>>106156995 (OP)
You're supposed to build inside the MSYS2 shell, retard.
Anonymous
8/6/2025, 3:41:33 AM No.106157805
>>106157352
Clion requires a login and registration and phones home every time you open it for a license check. If you pirate it, you don't need any of that.
Anonymous
8/6/2025, 3:52:39 AM No.106157878
1745211781380602
1745211781380602
md5: b5b87963c4e11bfeea0d4300fe64f9c5🔍
Anonymous
8/6/2025, 4:03:11 AM No.106157942
Op here, will I still have these issues if I use NeoVim? Does NeoVim work great with MSYS2 Cmake?
Anonymous
8/6/2025, 4:06:29 AM No.106157969
cannotsolve
cannotsolve
md5: 559c90890a50b63470e85b7d2820cb93🔍
ChatGPT couldn't solve my issue either after 20 tries of pasting it my console errors. Impressively it did try unique solutions every time from editting .json files, to workspacestorage, to opening vscode from the ucrt64 shell. Vs code has defeated chatgpt.
Anonymous
8/6/2025, 4:18:17 AM No.106158043
more CMake sabotages itself
Anonymous
8/6/2025, 4:21:58 AM No.106158057
PEPE BRAIN DAMAGE
PEPE BRAIN DAMAGE
md5: 0e1bd348b81369f8533420604836c1c1🔍
>MSYS2
oh no no
Replies: >>106158523
Anonymous
8/6/2025, 4:31:40 AM No.106158120
>>106157395
Firstly there is no such thing as the NTFS API. There is the win32 API, and the NT Native API. Win32 supports forward slashes. The Native API uses backslashes exclusively.
Anonymous
8/6/2025, 5:24:58 AM No.106158500
>microsoft sabotage
It’s just jeets being jeets
Replies: >>106158549
Anonymous
8/6/2025, 5:28:10 AM No.106158523
>>106158057
What should I use instead then?
Replies: >>106160421
Anonymous
8/6/2025, 5:31:26 AM No.106158544
Looks like Microsoft is up to their old shennanigans. They broke vcpkg on ubuntu so it doesn't work on purpose too.

https://github.com/microsoft/vscode-cmake-tools/issues/443
Anonymous
8/6/2025, 5:31:56 AM No.106158549
>>106158500
when you want something sabotaged, hire a jeet or a millennial to maintain it
Anonymous
8/6/2025, 5:41:21 AM No.106158608
>>106157036
CLion is not a compiler you fucking idiot
Replies: >>106158643
Anonymous
8/6/2025, 5:47:32 AM No.106158643
>>106158608
it auto sets up cmake and everything else so it just works
Anonymous
8/6/2025, 5:49:31 AM No.106158655
>>106156995 (OP)
Use Visual Studio like a normal person, freetard.
Replies: >>106158772 >>106158926 >>106160639
Anonymous
8/6/2025, 6:13:14 AM No.106158772
>>106158655
I am using visual studio.
Anonymous
8/6/2025, 6:19:15 AM No.106158798
>>106156995 (OP)
cmake is cringe

just a powershell script like a normal person you fag
Anonymous
8/6/2025, 6:30:53 AM No.106158854
>>106156995 (OP)
Use a proper IDE like visual studio instead of vscodejeet
Replies: >>106158926 >>106160639
Anonymous
8/6/2025, 6:43:17 AM No.106158926
>>106158854
>>106158655
Visual Studio doesn't work on ubuntu. Visual Studio Code works on Windows and Linux.
Anonymous
8/6/2025, 11:14:35 AM No.106160421
>>106156995 (OP)
you're just using cmake wrong
for some reason your source directory (where CMakeLists.txt is) is being prepended by your build directory (where the output goes)
if i had to guess quoting/escaping issue between windows quoting rules and mingw quoting rules, or it's because you're mixing build envs and using windows paths to some parameter being passed to a build tool that has to run under the MSYS2 cygwin based support runtime expects cygwin style "unix" paths
you conveniently covered up the actual invocation


>>106158523
native (not built in or for mingw64 or MSYS2) windows binaries of the windows compatible llvm/clang toolchain (i.e. clang-cl) and the microsoft STL
support for 90% of gcc extensions on native windows as well as MS extensions
if they're in its repository, and they probably are, use vcpkg to install dependencies that have to be built by MSYS2/mingw (and just stuff in general) and it'll handle the mess
you shouldn't need mingw style POSIX support for new projects, it's mostly for building windows C ABI compatible versions of existing POSIX/linux projects

oh and use native windows cmake targeting ninja as a generator
the fuck are you using mingw/unix makefiles for
the only generator anyone uses regardless of platform is ninja and/or the newer ninja multi-config or occasionally msbuild if some fucky MSVC shit is needed

and clean up any detectable side affects MSYS2 left on your system, iirc cmake tries to detect things from it too often
Anonymous
8/6/2025, 11:53:34 AM No.106160639
1888486412522435811
1888486412522435811
md5: 1b886d9ec431fb5a38a9b3d9b7175436🔍
>>106158655
>>106158854
>Use Visual Studio like a normal person, saar
Replies: >>106160749
Anonymous
8/6/2025, 12:15:42 PM No.106160749
>>106160639
>NOOO YOUR IDE IS HINDU
>ignores the fact that all of these hindu pictures are vs code stock art, mostly on fagbooks and ifags