• T.J. Corona's avatar
    Only check the version file if the variable "SMTK_VERSION" is not defined · 61dfb04d
    T.J. Corona authored
    We require smtk's version information to be included the CMake Project
    declaration in order to properly include smtk versions when using smtk as an
    SDK. We therefore do not have access to the variable ${PROJECT_SOURCE_DIR}
    at the time smtkVersion.cmake is read. We therefore use
    ${CMAKE_CURRENT_SOURCE_DIR}, since smtkVersion.cmake is called at the top
    level of smtk's build. We also guard against subsequent calls to
    smtkVersion.cmake where ${CMAKE_CURRENT_SOURCE_DIR} may no longer be set to
    the top level directory.
smtkVersion.cmake 1.43 KB