Skip to content
Snippets Groups Projects
Select Git revision
  • 9e56a186c3c467c8807f077e8bb3beba0fffd6c3
  • develop default protected
  • feature/kinetic-schemes
  • feature/reconstruction
  • feature/local-dt-fsi
  • feature/composite-scheme-sources
  • feature/composite-scheme-other-fluxes
  • feature/serraille
  • feature/variational-hydro
  • feature/composite-scheme
  • hyperplastic
  • feature/polynomials
  • feature/gks
  • feature/implicit-solver-o2
  • feature/coupling_module
  • feature/implicit-solver
  • feature/merge-local-dt-fsi
  • master protected
  • feature/escobar-smoother
  • feature/hypoelasticity-clean
  • feature/hypoelasticity
  • v0.5.0 protected
  • v0.4.1 protected
  • v0.4.0 protected
  • v0.3.0 protected
  • v0.2.0 protected
  • v0.1.0 protected
  • Kidder
  • v0.0.4 protected
  • v0.0.3 protected
  • v0.0.2 protected
  • v0 protected
  • v0.0.1 protected
33 results

CMakeLists.txt

Blame
  • CMakeLists.txt 1.02 KiB
    cmake_minimum_required (VERSION 3.4)
    
    if (${CMAKE_BINARY_DIR} MATCHES "^${CMAKE_SOURCE_DIR}")
      if (NOT ${CMAKE_BINARY_DIR} MATCHES "^${CMAKE_SOURCE_DIR}/build")
        message("")
        message("##############################################")
        message("     In-source building is not allowed!       ")
        message("##############################################")
        message("")
        message(" Run cmake outside from source directory ")
        message(" or from ${CMAKE_SOURCE_DIR}/build")
        message("")
        message("----------------------------------------------")
        message(" warning: remaining generated files!")
        message("   ${CMAKE_BINARY_DIR}/CMakeCache.txt")
        message("   ${CMAKE_BINARY_DIR}/CMakeFiles")
        message("----------------------------------------------")
        message("")
        message(" Please remove remaining generated files ")
        message(" and run cmake from an appropriate location")
        message("")
    
        message(FATAL_ERROR  "\n** CMake aborted **")
      endif()
    endif()
    
    project (Pastis)
    add_executable(pastis main.cpp)