Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8531


Ignore:
Timestamp:
May 22, 2011, 11:26:37 PM (14 years ago)
Author:
adrfried
Message:

skip external data directory if it was not found

  • this is useful if the external data gets installed with a separate package.
  • also fixed the exclude regexp.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/CMakeLists.txt

    r8479 r8531  
    5656)
    5757# External directory
    58 INSTALL(
    59   DIRECTORY ${EXTERNAL_DATA_DIRECTORY}/
    60   DESTINATION ${DATA_INSTALL_DIRECTORY}
    61   REGEX "\\.svn$|_svn$|" EXCLUDE
    62 )
     58# User may want to install separately, ignore if not found.
     59IF(EXISTS ${EXTERNAL_DATA_DIRECTORY})
     60  INSTALL(
     61    DIRECTORY ${EXTERNAL_DATA_DIRECTORY}/
     62    DESTINATION ${DATA_INSTALL_DIRECTORY}
     63    REGEX "\\.svn$|_svn$" EXCLUDE
     64  )
     65ENDIF()
Note: See TracChangeset for help on using the changeset viewer.