File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,18 @@ export(EXPORT ${PROJECT_NAME}-targets
7373configure_package_config_file(${PROJECT_NAME} Config.cmake.in
7474 "${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} Config.cmake"
7575 INSTALL_DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR} )
76+ # Workaround until ARCH_INDEPENDENT flag can be used with cmake 3.14.
77+ # The ConigVersion.cmake file contains checks for the architecture is was
78+ # generated on, which can cause problems for header only libraries
79+ # used with e.g. the Conan package manager. Since it is header only we
80+ # can/should omit those checks.
81+ set (CPPZMQ_SIZEOF_VOID_P ${CMAKE_SIZEOF_VOID_P} )
82+ set (CMAKE_SIZEOF_VOID_P "" ) # a simple unset is not sufficient
7683write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} ConfigVersion.cmake
7784 VERSION ${CPPZMQ_VERSION}
7885 COMPATIBILITY AnyNewerVersion)
86+ set (CMAKE_SIZEOF_VOID_P ${CPPZMQ_SIZEOF_VOID_P} )
87+
7988install (EXPORT ${PROJECT_NAME} -targets
8089 FILE ${PROJECT_NAME} Targets.cmake
8190 DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR} )
You can’t perform that action at this time.
0 commit comments