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)