mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 06:41:03 +08:00
Problem: WIN32 CMAKECONFIG_INSTALL_DIR is broken
Solution: set it to CMake instead of a subfolder of share. See cmake find_package documentation for further info.
This commit is contained in:
parent
d15795b4e3
commit
de5e7a3983
@ -965,8 +965,12 @@ endif ()
|
||||
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
# GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
|
||||
set(ZEROMQ_CMAKECONFIG_INSTALL_DIR "share/cmake/${PROJECT_NAME}" CACHE STRING "install path for ZeroMQConfig.cmake")
|
||||
if (WIN32)
|
||||
set(ZEROMQ_CMAKECONFIG_INSTALL_DIR "CMake" CACHE STRING "install path for ZeroMQConfig.cmake")
|
||||
else()
|
||||
# GNUInstallDirs "DATADIR" wrong here; CMake search path wants "share".
|
||||
set(ZEROMQ_CMAKECONFIG_INSTALL_DIR "share/cmake/${PROJECT_NAME}" CACHE STRING "install path for ZeroMQConfig.cmake")
|
||||
endif()
|
||||
|
||||
if (NOT CMAKE_VERSION VERSION_LESS 3.0)
|
||||
export(EXPORT ${PROJECT_NAME}-targets
|
||||
|
Loading…
x
Reference in New Issue
Block a user