Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake/PreventInSourceBuilds.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
function(myproject_assure_out_of_source_builds)
# make sure the user doesn't play dirty with symlinks
get_filename_component(srcdir "${CMAKE_SOURCE_DIR}" REALPATH)
get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH)
file(REAL_PATH "${CMAKE_SOURCE_DIR}" srcdir)
file(REAL_PATH "${CMAKE_BINARY_DIR}" bindir)

# disallow in-source builds
if("${srcdir}" STREQUAL "${bindir}")
Expand Down