Skip to content

Commit 7a7bfa1

Browse files
carlo-braminibluca
authored andcommitted
CMake: fix installation of config files on MinGW
You have configured zeromq with CMake. Build environment is MinGW. When you install the the package config files, they are copied into a "CMake" directory into the sysroot, but this is a nonsense. Instead, they should be copied under ${LIBDIR}/cmake, as GNU tools require. Hopefully, the solution is very easy. This tiny PR fixes this error.
1 parent aaf88cd commit 7a7bfa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1756,7 +1756,7 @@ if(WITH_DOC)
17561756
endif()
17571757
endif()
17581758

1759-
if(WIN32)
1759+
if(WIN32 AND NOT MINGW)
17601760
set(ZEROMQ_CMAKECONFIG_INSTALL_DIR
17611761
"CMake"
17621762
CACHE STRING "install path for ZeroMQConfig.cmake")

0 commit comments

Comments
 (0)