Commit 4d1faf83 authored by Ben Boeckel's avatar Ben Boeckel

cmake: use a cmake-supported search path

CMake will find the package by default with a `-version` suffix rather
than a `/version` suffix.
parent 1852141a
Pipeline #177962 failed with stages
in 27 minutes and 59 seconds
......@@ -103,9 +103,9 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
# convention for this directory's location is OS-dependent. See
# https://cmake.org/cmake/help/v3.13/command/find_package.html section "Search
# Procedure" for more information.
set(SMTK_INSTALL_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/${PROJECT_VERSION})
set(SMTK_INSTALL_CONFIG_DIR ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}-${PROJECT_VERSION})
if (WIN32)
set(SMTK_INSTALL_CONFIG_DIR cmake/${PROJECT_NAME}/${PROJECT_VERSION})
set(SMTK_INSTALL_CONFIG_DIR cmake/${PROJECT_NAME}-${PROJECT_VERSION})
endif()
# If SMTK_INSTALL_TESTING_DATA is set to ON, set the directory where smtk's data
......
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