From 634c9968a0363ef84813e6349970ef993282709b Mon Sep 17 00:00:00 2001 From: awilson-kx <33430980+awilson-kx@users.noreply.github.com> Date: Mon, 15 Jun 2020 16:49:37 +0100 Subject: [PATCH] reordered cmake (#27) Co-authored-by: cmccarthy1 <38653604+cmccarthy1@users.noreply.github.com> --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0edf4ee..6b77168 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,6 @@ +cmake_minimum_required(VERSION 3.0) +project(hdf5 C) + # Environment variable for HDF5_HOME is required if(NOT DEFINED ENV{BUILD_HOME}) message(FATAL_ERROR "BUILD_HOME must be set to the location of your installed hdf5-group repository") @@ -8,9 +11,6 @@ IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE MinSizeRel) ENDIF() -cmake_minimum_required(VERSION 3.0) -project(hdf5 C) - set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -DKXVER=3") set(MY_LIBRARY_NAME kdbhdf5)