• about
  • projects
  • blog

Set variables such as CFLAGS in CMake project

April 21, 2021
Brad Barrows
#

Easy alternative way to set CFLAGS in the output from CMake

Edit the CMakeLists.txt file and add a line with your flags such as:

set(CMAKE_C_FLAGS "-I/usr/local/include/")

© 2021