0
我使用cmake編譯code.In中,我已經使用的共享選項創建共享Library.However,在使用cmake編譯我收到錯誤:目標平臺未能創建共享庫
ADD_LIBRARY for library GenericUSMModules is used with the SHARED option, but the target platform supports only STATIC libraries. Building
it STATIC instead. This may lead to problems.
ADD_LIBRARY for library XXXaUSMModules is used with the SHARED option, but the target platform supports only STATIC libraries. Building
it STATIC instead. This may lead to problems.
,它正在創建libGenericUSMModules.a(靜態庫)和libXXXUSMModules.a而不是so文件。我想知道是否有可能爲每個存檔文件(如libGenericUSMModules.so和libXXXUSMModules.a)創建共享庫時將其與存在於相同位置的靜態庫libGCVCore.a鏈接。 謝謝