I wanted to avoid in-source build, so I wrote code like below...
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
message(FETAL_ERROR "in-source build is forbidden")
endif()
It emitted that message, but cmake did not stop processing.
Now my source directory is polluted...
How to prevent this?