Skip to content

Commit

Permalink
Let GSHHG_INSTALL_PATH and DCW_INSTALL_PATH available to upper-level …
Browse files Browse the repository at this point in the history
…directory
  • Loading branch information
seisman committed Sep 12, 2019
1 parent 693dee7 commit aaea978
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions share/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ if (GSHHG_PATH AND COPY_GSHHG)
DESTINATION ${GMT_DATADIR}/coast
COMPONENT GSHHG)
# location must be blank in gmt.conf
set (GSHHG_INSTALL_PATH)
set (GSHHG_INSTALL_PATH CACHE INTERNAL "Location of GSHHG Data")
# create coastline.conf which is needed for in-build-dir ctest
configure_file (coastline.conf.in coastline.conf @ONLY)
else (GSHHG_PATH AND COPY_GSHHG)
# set installed location
set (GSHHG_INSTALL_PATH ${GSHHG_PATH})
set (GSHHG_INSTALL_PATH ${GSHHG_PATH} CACHE INTERNAL "Location of GSHHG Data")
endif (GSHHG_PATH AND COPY_GSHHG)

# only attempt to install DCW file when requested and path is known
Expand All @@ -48,10 +48,10 @@ if (DCW_PATH AND COPY_DCW)
DESTINATION ${GMT_DATADIR}/dcw
COMPONENT DCW)
# location must be blank in gmt.conf
set (DCW_INSTALL_PATH)
set (DCW_INSTALL_PATH CACHE INTERNAL "Location of DCW Data")
else (DCW_PATH AND COPY_DCW)
# set installed location
set (DCW_INSTALL_PATH ${DCW_PATH})
set (DCW_INSTALL_PATH ${DCW_PATH} CACHE INTERNAL "Location of GSHHG Data")
endif (DCW_PATH AND COPY_DCW)


Expand Down

0 comments on commit aaea978

Please sign in to comment.