Fix case-sensitivity issues with CMake package
This commit is contained in:
Родитель
37b5fde1d5
Коммит
053c9fed09
|
@ -89,8 +89,10 @@ target_include_directories(Utilities INTERFACE
|
|||
#--- Package
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
string(TOLOWER ${PROJECT_NAME} PACKAGE_NAME)
|
||||
|
||||
write_basic_package_version_file(
|
||||
${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}-config-version.cmake
|
||||
${PROJECT_BINARY_DIR}/cmake/${PACKAGE_NAME}-config-version.cmake
|
||||
VERSION ${DIRECTXMESH_VERSION}
|
||||
COMPATIBILITY AnyNewerVersion)
|
||||
|
||||
|
@ -109,7 +111,7 @@ install(TARGETS Utilities
|
|||
COMPONENT utils)
|
||||
|
||||
configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/.nuget/${PROJECT_NAME}-config.cmake.in
|
||||
${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}-config.cmake
|
||||
${PROJECT_BINARY_DIR}/cmake/${PACKAGE_NAME}-config.cmake
|
||||
INSTALL_DESTINATION cmake/})
|
||||
|
||||
install(EXPORT ${PROJECT_NAME}-targets
|
||||
|
@ -130,8 +132,8 @@ install(FILES ${UTILS_HEADERS}
|
|||
|
||||
install(
|
||||
FILES
|
||||
${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}-config.cmake
|
||||
${PROJECT_BINARY_DIR}/cmake/${PROJECT_NAME}-config-version.cmake
|
||||
${PROJECT_BINARY_DIR}/cmake/${PACKAGE_NAME}-config.cmake
|
||||
${PROJECT_BINARY_DIR}/cmake/${PACKAGE_NAME}-config-version.cmake
|
||||
DESTINATION cmake/)
|
||||
|
||||
#--- Command-line tool
|
||||
|
|
Загрузка…
Ссылка в новой задаче