Skip to content
GitLab
Explore
Sign in
Register
This is an archived project. Repository and other project resources are read-only.
Commits on Source (1)
CONFIG: cmake targets are globally unique
· 2ac2c5ec
Mark OLESEN
authored
Jul 20, 2018
2ac2c5ec
Hide whitespace changes
Inline
Side-by-side
src/catalyst/CMakeLists-Catalyst.txt
View file @
2ac2c5ec
#------------------------------------------------------------------------------
project(catalyst)
include(${PARAVIEW_USE_FILE})
...
...
src/catalyst/CMakeLists.txt
View file @
2ac2c5ec
#------------------------------------------------------------------------------
cmake_minimum_required
(
VERSION 2.8
)
cmake_policy
(
SET CMP0002 NEW
)
# Policy CMP0002 required for for cmake >= 3
# Fail i
mmediately if not using an
out-of-source
build
# Fail i
f not building
out-of-source
if
(
CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR
)
message
(
FATAL_ERROR
"In-source builds are not supported. Please create a build directory "
"separate from the source directory"
)
"In-source builds disallowed. Use a separate build directory"
)
endif
()
project
(
catalyst
)
# Set policy for CMP0002 needed for cmake > 3
cmake_policy
(
SET CMP0002 OLD
)
include
(
CMakeLists-OpenFOAM.txt
)
#------------------------------------------------------------------------------
...
...