CMake常用内置变量说明
CMake常用内置变量说明如下所示。
环境变量 | 说明 |
---|---|
CC | C compiler command |
CFLAGS | C compiler flags |
LDFLAGS | linker flags, e.g. -L if you have libraries in a nonstandard directory |
LIBS | libraries to pass to the linker, e.g. -l |
CPPFLAGS | (Objective) C/C++preprocessor flags, e.g. -I if you have headers in a nonstandard directory |
CPP | C preprocessor |
CXX | C++compiler command |
CXXFLAGS | C++compiler flags |