Fix mingw archiver

This commit is contained in:
lazymio 2022-05-02 17:40:57 +02:00
parent b70ab41422
commit 7dfecbcb4a
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -55,7 +55,7 @@ function(bundle_static_library tgt_name bundled_tgt_name library_name)
OUTPUT ${bundled_tgt_full_name}
COMMENT "Bundling ${bundled_tgt_name}"
VERBATIM)
elseif(UNIX)
elseif(UNIX OR MINGW)
file(WRITE ${CMAKE_BINARY_DIR}/${bundled_tgt_name}.ar.in
"CREATE ${bundled_tgt_full_name}\n" )