Skip to content

Only check the version file if the variable "SMTK_VERSION" is not defined

T.J. Corona requested to merge tjcorona/smtk:guard-version-check into master

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.

Merge request reports