Skip to main content

Macro Definition

CMAKE_SOURCE_DIR​

  • The path to the top level of the source tree
  • This is the full path to the top level of the current CMake source tree. For an in-source build, this would be the same as CMAKE_BINARY_DIR.

CMAKE_MODULE_PATH​

  • Semicolon-separated list of directories, represented using forward slashes, specifying a search path for CMake modules to be loaded by the include() or find_package() commands before checking the default modules that come with CMake. By default it is empty. It is intended to be set by the project.

CMAKE_PREFIX_PATH​

  • Used by find_library() to locate library files (.a, .lib, .so, .dll) in your packages and find_dependency() to locate the transitive dependencies