Skycoder42 / QHotkey

A global shortcut/hotkey for Desktop Qt-Applications
BSD 3-Clause "New" or "Revised" License
548 stars 161 forks source link

building with cmake build for a Debug Config automatically if you don't precise it in the "--build" step #75

Closed RedaMazoz closed 1 year ago

RedaMazoz commented 1 year ago

Hi, I've tried to build the project in windows, but I noticed that when I do cmake --install build cmake couldn't find the .lib file because cmake was building for a Debug config while it the last command asked for a Release config

Please add to the documentation that people should use cmake --build build --config release instead of just saying cmake --build build

Just wanted to help others that would've struggled :)

Shatur commented 1 year ago

It's because some generators such as Visual Studio on Windows are multi-config. I.e. you need to select the build type at the build step, not at the configuration step. It's not specific to Windows, see. Building C++ projects have a lot of nuances. It's impossible to document everything. But feel free to open a PR for it.