CMake output/build directory

前端 未结 5 495
北恋
北恋 2020-11-28 03:05

I\'m pretty new to CMake, and read a few tutorials on how to use it, and wrote some complicated 50 lines of CMake script in order to make a program for 3 different compilers

5条回答
  •  死守一世寂寞
    2020-11-28 03:43

    As of CMake Wiki:

    CMAKE_BINARY_DIR if you are building in-source, this is the same as CMAKE_SOURCE_DIR, otherwise this is the top level directory of your build tree

    Compare these two variables to determine if out-of-source build was started

提交回复
热议问题