Skip to content
Snippets Groups Projects
Commit 2ac2c5ec authored by Mark OLESEN's avatar Mark OLESEN
Browse files

CONFIG: cmake targets are globally unique

parent d97babec
No related merge requests found
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
project(catalyst)
include(${PARAVIEW_USE_FILE}) include(${PARAVIEW_USE_FILE})
......
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0002 NEW) # Policy CMP0002 required for for cmake >= 3
# Fail immediately if not using an out-of-source build # Fail if not building out-of-source
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR) if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
message(FATAL_ERROR message(FATAL_ERROR
"In-source builds are not supported. Please create a build directory " "In-source builds disallowed. Use a separate build directory")
"separate from the source directory")
endif() endif()
project(catalyst)
# Set policy for CMP0002 needed for cmake > 3
cmake_policy(SET CMP0002 OLD)
include(CMakeLists-OpenFOAM.txt) include(CMakeLists-OpenFOAM.txt)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment