We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9954778 + 81aff32 commit f4f73edCopy full SHA for f4f73ed
1 file changed
cmake/PreventInSourceBuilds.cmake
@@ -3,8 +3,8 @@
3
#
4
function(myproject_assure_out_of_source_builds)
5
# make sure the user doesn't play dirty with symlinks
6
- get_filename_component(srcdir "${CMAKE_SOURCE_DIR}" REALPATH)
7
- get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH)
+ file(REAL_PATH "${CMAKE_SOURCE_DIR}" srcdir)
+ file(REAL_PATH "${CMAKE_BINARY_DIR}" bindir)
8
9
# disallow in-source builds
10
if("${srcdir}" STREQUAL "${bindir}")
0 commit comments