Sha256: a2ace63be990a0482b8c4e923a3e7bde8175a565df0b926a40ea3495f9d13b28
Contents?: true
Size: 807 Bytes
Versions: 7
Compression:
Stored size: 807 Bytes
Contents
# # This function will prevent in-source builds function(AssureOutOfSourceBuilds) # 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) message(STATUS "CMAKE_SOURCE_DIR=${srcdir}") message(STATUS "CMAKE_BINARY_DIR=${bindir}") # disallow in-source builds if("${srcdir}" STREQUAL "${bindir}") message("######################################################") message("Warning: in-source builds are disabled") message("Please create a separate build directory and run cmake from there") message("######################################################") message(FATAL_ERROR "Quitting configuration") endif() endfunction() AssureOutOfSourceBuilds()
Version data entries
7 entries across 7 versions & 1 rubygems