cmake: add support for static build

This commit is contained in:
2024-12-06 19:48:20 +00:00
parent 1f7319458e
commit ec05379e33
7 changed files with 39 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#ifndef IVY_COMMON_MISC_H_
#define IVY_COMMON_MISC_H_
#ifdef _MSC_VER
#if defined(_MSC_VER) && IVY_STATIC==0
#ifdef IVY_EXPORT
#define IVY_API extern __declspec(dllexport)
#else