Skip to content
Permalink
Browse files

fix MDAL CMakeList.txt for sqlite (#37108)

fix MDAL CMakeList.txt for sqlite
Co-authored-by: Peter Petrik <zilolv@gmail.com>
  • Loading branch information
vcloarec committed Jun 11, 2020
1 parent 332f16a commit 6c2a63807ef11de32e00f0c4b5206416cc5a3941
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/providers/mdal/CMakeLists.txt
@@ -77,6 +77,10 @@ IF (WITH_INTERNAL_MDAL)
SET (HAVE_HDF5 TRUE)
ENDIF(HDF5_FOUND)

IF(SQLITE3_FOUND)
SET(HAVE_SQLITE3 TRUE)
ENDIF(SQLITE3_FOUND)

IF(SQLITE3_FOUND AND NETCDF_FOUND)
SET(MDAL_LIB_SRCS ${MDAL_LIB_SRCS}
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_sqlite3.cpp
@@ -103,15 +107,13 @@ IF (WITH_INTERNAL_MDAL)
IF(NETCDF_FOUND)
SET(MDAL_LIB_SRCS ${MDAL_LIB_SRCS}
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_cf.cpp
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_3di.cpp
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_netcdf.cpp
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_sww.cpp
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_ugrid.cpp
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_tuflowfv.cpp
)
SET(MDAL_LIB_HDRS ${MDAL_LIB_HDRS}
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_cf.hpp
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_3di.hpp
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_netcdf.hpp
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_sww.hpp
${CMAKE_SOURCE_DIR}/external/mdal/frmts/mdal_ugrid.hpp

0 comments on commit 6c2a638

Please sign in to comment.
You can’t perform that action at this time.