Skip to content

Instantly share code, notes, and snippets.

@nafeesb
Last active August 8, 2023 17:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nafeesb/238819d525f471b3fd9bb5e1fd561faf to your computer and use it in GitHub Desktop.
Save nafeesb/238819d525f471b3fd9bb5e1fd561faf to your computer and use it in GitHub Desktop.
CMake b*lls*it

CMake is a haneous piece of software, but somehow it has more popularity than others. These are my notes on inane BS I have to deal with time to time in CMake.

CMAKE_DEBUG_POSTFIX

Postfix like _Debug and _Release added to library names in windows.

Verbose Makefile

-DCMAKE_VERBOSE_MAKEFILE=true or make VERBOSE=1

Verbose message output

--log-level=DEBUG

Build-in-one-line

cmake -S dbparser -B dbparser/build -DCMAKE_BUILD_TYPE=Release && cmake --build dbparser/build -j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment