diff --git a/src/catalyst/CMakeLists-Catalyst.txt b/src/catalyst/CMakeLists-Catalyst.txt index 00cf60e471928927312bdad0a22ac96df9207608..453968d3e0a9a50356ef8094e33c0e0d473be766 100644 --- a/src/catalyst/CMakeLists-Catalyst.txt +++ b/src/catalyst/CMakeLists-Catalyst.txt @@ -1,4 +1,5 @@ #------------------------------------------------------------------------------ +project(catalyst) include(${PARAVIEW_USE_FILE}) diff --git a/src/catalyst/CMakeLists.txt b/src/catalyst/CMakeLists.txt index cb734ec15345a82127ac5651da90b01e7d3ba88c..7494a1118b3b290203d4ff801a53fadf79028d4f 100644 --- a/src/catalyst/CMakeLists.txt +++ b/src/catalyst/CMakeLists.txt @@ -1,19 +1,13 @@ #------------------------------------------------------------------------------ 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) 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) #------------------------------------------------------------------------------