mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
drop CGLM_DLL, add CGLM_STATIC
This commit is contained in:
@@ -77,7 +77,8 @@ add_library(${PROJECT_NAME}
|
|||||||
|
|
||||||
if(CGLM_SHARED)
|
if(CGLM_SHARED)
|
||||||
add_definitions(-DCGLM_EXPORTS)
|
add_definitions(-DCGLM_EXPORTS)
|
||||||
target_compile_definitions(${PROJECT_NAME} PUBLIC -DCGLM_DLL)
|
else()
|
||||||
|
target_compile_definitions(${PROJECT_NAME} PUBLIC -DCGLM_STATIC)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_target_properties(${PROJECT_NAME} PROPERTIES
|
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||||
|
|||||||
@@ -23,12 +23,12 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
# ifdef CGLM_EXPORTS
|
# ifdef CGLM_STATIC
|
||||||
# define CGLM_EXPORT __declspec(dllexport)
|
|
||||||
# elif defined(CGLM_DLL)
|
|
||||||
# define CGLM_EXPORT __declspec(dllimport)
|
|
||||||
# else
|
|
||||||
# define CGLM_EXPORT
|
# define CGLM_EXPORT
|
||||||
|
# elif defined(CGLM_EXPORTS)
|
||||||
|
# define CGLM_EXPORT __declspec(dllexport)
|
||||||
|
# else
|
||||||
|
# define CGLM_EXPORT __declspec(dllimport)
|
||||||
# endif
|
# endif
|
||||||
# define CGLM_INLINE __forceinline
|
# define CGLM_INLINE __forceinline
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user