Skip to content
Snippets Groups Projects
Unverified Commit 064f9804 authored by Pospelov, Gennady's avatar Pospelov, Gennady Committed by GitHub
Browse files

Merge pull request #685 from jwuttke/cmake-idiom1

make CMake module more idiomatic
parents caa736b7 209d5c13
Branches
Tags
No related merge requests found
......@@ -6,7 +6,7 @@ function(prevent_in_source_builds)
get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH)
# disallow in-source builds
if("${srcdir}" STREQUAL "${bindir}")
if(srcdir STREQUAL bindir)
message(FATAL_ERROR "\
CMake must not to be run in the source directory. \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment