Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CMake .. produces output in parent directory

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?

like image 906
user1094206 Avatar asked Dec 06 '25 03:12

user1094206


1 Answers

Turns out that since I ran cmake in the top level project directory, running it again from inside build didn't produce a new output. Removing CMakeCache.txt from project should solve the problem.

like image 120
user1094206 Avatar answered Dec 08 '25 21:12

user1094206



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!