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:
parent
6aaa3ad92d
commit
25e6e38c85
2 changed files with 2 additions and 2 deletions
|
@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD 11)
|
|||
set(CMAKE_C_STANDARD 99)
|
||||
|
||||
# Global variables
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
||||
|
||||
if(UNIX)
|
||||
include(GNUInstallDirs)
|
||||
|
|
|
@ -67,7 +67,7 @@ include(CMakePackageConfigHelpers)
|
|||
write_basic_package_version_file("${version_config}" COMPATIBILITY SameMajorVersion)
|
||||
|
||||
# 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}")
|
||||
|
||||
# Installation
|
||||
|
|
Loading…
Reference in a new issue