drop CGLM_DLL, add CGLM_STATIC

This commit is contained in:
Randy
2020-08-03 22:45:50 +02:00
parent 09fd9f86b9
commit 009fb966a6
2 changed files with 7 additions and 6 deletions

View File

@@ -77,7 +77,8 @@ add_library(${PROJECT_NAME}
if(CGLM_SHARED)
add_definitions(-DCGLM_EXPORTS)
target_compile_definitions(${PROJECT_NAME} PUBLIC -DCGLM_DLL)
else()
target_compile_definitions(${PROJECT_NAME} PUBLIC -DCGLM_STATIC)
endif()
set_target_properties(${PROJECT_NAME} PROPERTIES

View File

@@ -23,12 +23,12 @@
#include <stdbool.h>
#if defined(_MSC_VER)
# ifdef CGLM_EXPORTS
# define CGLM_EXPORT __declspec(dllexport)
# elif defined(CGLM_DLL)
# define CGLM_EXPORT __declspec(dllimport)
# else
# ifdef CGLM_STATIC
# define CGLM_EXPORT
# elif defined(CGLM_EXPORTS)
# define CGLM_EXPORT __declspec(dllexport)
# else
# define CGLM_EXPORT __declspec(dllimport)
# endif
# define CGLM_INLINE __forceinline
#else