diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-30 07:20:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-05-30 07:20:00 +0200 |
commit | 73032cf0e8df0b942b3617cd06f1d50078ee085a (patch) | |
tree | 52d8292228e02553ad8f5c7c6b017294ded84fa4 /cmake | |
parent | 54266dc1ea71411168f5275f066111cef4ac8314 (diff) |
cmake: disable in-source builds the right way
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/opentrack-check-build-directory.cmake | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/cmake/opentrack-check-build-directory.cmake b/cmake/opentrack-check-build-directory.cmake deleted file mode 100644 index a9351b6a..00000000 --- a/cmake/opentrack-check-build-directory.cmake +++ /dev/null @@ -1,7 +0,0 @@ -get_filename_component(_abs_src_path ${CMAKE_SOURCE_DIR} REALPATH)
-string(TOLOWER ${_abs_src_path} _abs_src_path)
-get_filename_component(_abs_build_path ${CMAKE_BINARY_DIR} REALPATH)
-string(TOLOWER ${_abs_build_path} _abs_build_path)
-if(_abs_src_path STREQUAL _abs_build_path)
- message(FATAL_ERROR "source directory has to be different than build directory")
-endif()
|