Skip to content

Commit

Permalink
reordered cmake (#27)
Browse files Browse the repository at this point in the history
Co-authored-by: cmccarthy1 <[email protected]>
  • Loading branch information
awilson-kx and cmccarthy1 authored Jun 15, 2020
1 parent 9cc197b commit 634c996
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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")
Expand All @@ -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)
Expand Down

0 comments on commit 634c996

Please sign in to comment.