-
T.J. Corona authored
We require cmb's version information to be included the CMake Project declaration in order to properly include cmb versions when using cmb as an SDK. We therefore do not have access to the variable ${PROJECT_SOURCE_DIR} at the time cmbVersion.cmake is read. We therefore use ${CMAKE_CURRENT_SOURCE_DIR}, since CMBVersion.cmake is called at the top level of cmb's build. We also guard against subsequent calls to CMBVersion.cmake elsewhere in the build setup where ${CMAKE_CURRENT_SOURCE_DIR} may no longer be set to the top level directory. Update smtk to apply the same logic for its version file.
5e2ac288