![]() Each directory added by add_subdirectory will create a binary directory in the build tree, and as it is being processed this variable will be set. This the full path to the build directory that is currently being processed by cmake. CMAKE_CURRENT_BINARY_DIR: The path to the binary directory currently being processed.This is the full path to the CTest executable ctest which is useful from custom commands that want to use the cmake -E option for portable system commands. CMAKE_CTEST_COMMAND: Full path to ctest command installed with cmake.Specifically if the build platform is different from the target platform. This variable will be set to true by CMake if CMake is cross compiling. CMAKE_CROSSCOMPILING: Is CMake currently cross compiling.This is the full path to the CMake executable cmake which is useful from custom commands that want to use the cmake -E option for portable system commands. CMAKE_COMMAND: The full path to the cmake executable.In multi-configuration build systems the value of this variable is passed as the value of preprocessor symbol "CMAKE_INTDIR" to the compilation of all source files. Example of intended usage:ĬOMMAND $/mytool" can be replaced by just "mytool". Since these values are evaluated by the native build system, this variable is suitable only for use in command lines that will be evaluated at build time. On Makefile generators this evaluates to "." because there is only one configuration in a build tree. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |