I'm trying to build BoringSSL by Google. The BUILDING file instructions clearly indicate that the output should go under the build directory.
I have a directory project
, and under it I've created build
. There is a CMakeLists.txt file under project
, and I would like it to build inside the build
directory. However, when I run cmake ..
from inside build
, the makefile is produced in the project
directory instead of the current build
directory.
Most instructions I found seem to indicate that the output of cmake goes into the current directory, regardless of where CMakeLists.txt is located. What am I doing incorrectly?
I made the following files/directory:
With CMakeLists.txt content:
Then I went into the ./project/build folder and ran
cmake ..
And all the generated files were in the
./project/build
folder.Try opening up your CMakeCache.txt file (it should be generated in the directory you ran CMake from) and check out variables like TEST_BINARY_DIR and CMAKE_CACHEFILE_DIR. They should set to your build directory for example.