googletest icon indicating copy to clipboard operation
googletest copied to clipboard

Update CMakeLists.txt to prevent source tree corruption when building

Open khobaib529 opened this issue 1 year ago • 1 comments
trafficstars

Prevent In-Source Builds

To prevent source tree corruption, this project does not allow in-source builds. The CMakeLists.txt file has been updated to enforce this restriction.

Behavior

If you attempt to build in the source directory, you will see the following error message:

CMake Error at CMakeLists.txt:5 (message):

FATAL: In-source builds are not allowed. You should create a separate directory for build files.

khobaib529 avatar Sep 24 '24 03:09 khobaib529