1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

cmake: allow libcpuid to be added as a CMake subproject (#155)

This commit is contained in:
SpaceIm 2021-07-16 00:48:00 +02:00 committed by GitHub
parent 6aaa3ad92d
commit 25e6e38c85
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD 99)
# Global variables # Global variables
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
if(UNIX) if(UNIX)
include(GNUInstallDirs) include(GNUInstallDirs)

View file

@ -67,7 +67,7 @@ include(CMakePackageConfigHelpers)
write_basic_package_version_file("${version_config}" COMPATIBILITY SameMajorVersion) write_basic_package_version_file("${version_config}" COMPATIBILITY SameMajorVersion)
# Configure '<PROJECT-NAME>Config.cmake' Use variables: * TARGETS_EXPORT_NAME * PROJECT_NAME # Configure '<PROJECT-NAME>Config.cmake' Use variables: * TARGETS_EXPORT_NAME * PROJECT_NAME
configure_package_config_file("${CMAKE_MODULE_PATH}/Config.cmake.in" "${project_config}" configure_package_config_file("${PROJECT_SOURCE_DIR}/cmake/Config.cmake.in" "${project_config}"
INSTALL_DESTINATION "${config_install_dir}") INSTALL_DESTINATION "${config_install_dir}")
# Installation # Installation