Skycoder42 / QHotkey

A global shortcut/hotkey for Desktop Qt-Applications
BSD 3-Clause "New" or "Revised" License
574 stars 164 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 2 years ago

RedaMazoz commented 2 years 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 2 years 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.