Sha256: 6ec06a5f9961654297ba8b697fe5aa023b62db98795bed620f5013c171c82fdb

Contents?: true

Size: 712 Bytes

Versions: 3

Compression:

Stored size: 712 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)

  # 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

3 entries across 3 versions & 1 rubygems

Version Path
couchbase-3.0.2 ext/cmake/PreventInSourceBuilds.cmake
couchbase-3.0.1-universal-darwin-19 ext/cmake/PreventInSourceBuilds.cmake
couchbase-3.0.1 ext/cmake/PreventInSourceBuilds.cmake