Commit 992ab9c2 authored by T.J. Corona's avatar T.J. Corona

Use generator expressions in function call for smtk directory location

parent 12acf396
......@@ -91,13 +91,13 @@ superbuild_add_project(smtk
${smtk_response_file})
set(smtk_config_version ${smtk_version_major}.${smtk_version_minor}.${smtk_version_patch})
if (WIN32)
set(smtk_config_dir <INSTALL_DIR>/smtk/${smtk_version}/cmake)
set(smtk_config_path "smtk/${smtk_config_version}/cmake")
else ()
set(smtk_config_dir <INSTALL_DIR>/lib/cmake/smtk/${smtk_version})
set(smtk_config_path "lib/cmake/smtk/${smtk_config_version}")
endif ()
superbuild_add_extra_cmake_args(-Dsmtk_DIR:PATH=${smtk_config_dir})
superbuild_add_extra_cmake_args(-Dsmtk_DIR:PATH=<INSTALL_DIR>/${smtk_config_path})
if ((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "7.0") OR
(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS "3.5"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment