Skip to content

Commit aaea978

Browse files
committed
Let GSHHG_INSTALL_PATH and DCW_INSTALL_PATH available to upper-level directory
1 parent 693dee7 commit aaea978

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

share/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ if (GSHHG_PATH AND COPY_GSHHG)
3434
DESTINATION ${GMT_DATADIR}/coast
3535
COMPONENT GSHHG)
3636
# location must be blank in gmt.conf
37-
set (GSHHG_INSTALL_PATH)
37+
set (GSHHG_INSTALL_PATH CACHE INTERNAL "Location of GSHHG Data")
3838
# create coastline.conf which is needed for in-build-dir ctest
3939
configure_file (coastline.conf.in coastline.conf @ONLY)
4040
else (GSHHG_PATH AND COPY_GSHHG)
4141
# set installed location
42-
set (GSHHG_INSTALL_PATH ${GSHHG_PATH})
42+
set (GSHHG_INSTALL_PATH ${GSHHG_PATH} CACHE INTERNAL "Location of GSHHG Data")
4343
endif (GSHHG_PATH AND COPY_GSHHG)
4444

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

5757

0 commit comments

Comments
 (0)