Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I'm not sure why they're all like this, I would have though supplying a default build directory is something cmake could handle.

cmake -H. -Bbuild && cmake --build .

Will do an out of source build with the default toolchain on windows/mac/linux. Has the added benefit of being parallel, and working with Visual Studio/Ninja/XCode.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: