We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6b1c16 commit 8e3dfd2Copy full SHA for 8e3dfd2
CMakeLists.txt
@@ -1,9 +1,5 @@
1
cmake_minimum_required(VERSION 3.15)
2
3
-if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
4
- message(FATAL_ERROR "use cmake -B build or similar to avoid building in-source")
5
-endif()
6
-
7
if(NOT CMAKE_BUILD_TYPE)
8
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Debug or Release")
9
endif()
@@ -14,6 +10,10 @@ project(h5fortran
14
10
DESCRIPTION "thin, light object-oriented HDF5 Fortran interface"
15
11
HOMEPAGE_URL https://github.com/geospace-code/h5fortran)
16
12
13
+if(PROJECT_SOURCE_DIR STREQUAL PROJECT_BINARY_DIR)
+ message(FATAL_ERROR "use 'cmake -B build' or similar to avoid building in-source")
+endif()
+
17
include(CTest)
18
19
if(NOT DEFINED ${PROJECT_NAME}_BUILD_TESTING)
0 commit comments