X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=cmake%2FQuasselMacros.cmake;h=6ad562b71dfdd6a1736fe6710d4a2739524df761;hp=6182f704f25be501b7987220daf1f0346fb127bc;hb=f5e769ff450b592bc645473e11f9258aec241f0e;hpb=063f4bce9c3c3d6e4efe68c0e95d95213ad08f52 diff --git a/cmake/QuasselMacros.cmake b/cmake/QuasselMacros.cmake index 6182f704..6ad562b7 100644 --- a/cmake/QuasselMacros.cmake +++ b/cmake/QuasselMacros.cmake @@ -20,9 +20,9 @@ include(QuasselCompileFeatures) # - a library target named quassel_client with output name (lib)quassel-client(.so) # - an alias target named Quassel::Client in global scope # -# If the optional argument STATIC is given, a static library is built; otherwise, on -# platforms other than Windows, a shared library is created. For shared libraries, also -# an install rule is added. +# If the optional argument STATIC is given, or the ENABLE_SHARED option is OFF, +# a static library is built; otherwise a shared library is created. For shared +# libraries, an install rule is also added. # # To generate an export header for the library, specify EXPORT. The header will be named # ${module}-export.h (where ${module} is the lower-case name of the module). @@ -143,7 +143,7 @@ function(quassel_add_resource _name) # # On Windows, input redirection apparently doesn't work, however piping does. Use this for all platforms for # consistency, accommodating for the fact that the 'cat' equivalent on Windows is 'type'. - if (WIN32) + if (WIN32 AND NOT MSYS) set(cat_cmd type) else() set(cat_cmd cat)