File tree 1 file changed +9
-0
lines changed
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
73
73
configure_package_config_file(${PROJECT_NAME} Config.cmake.in
74
74
"${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} Config.cmake"
75
75
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
76
83
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR} /${PROJECT_NAME} ConfigVersion.cmake
77
84
VERSION ${CPPZMQ_VERSION}
78
85
COMPATIBILITY AnyNewerVersion)
86
+ set (CMAKE_SIZEOF_VOID_P ${CPPZMQ_SIZEOF_VOID_P} )
87
+
79
88
install (EXPORT ${PROJECT_NAME} -targets
80
89
FILE ${PROJECT_NAME} Targets.cmake
81
90
DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR} )
You can’t perform that action at this time.
0 commit comments