fix(build): Fix DLL build on Windows (#2951)
Changes the DLL export condition to apply to platform WIN32 instead of compiler MSVC
This commit is contained in:
parent
8f7e2cd179
commit
0b18882a94
@ -62,7 +62,7 @@ if (NOT BUILD_SHARED_LIBS)
|
||||
add_library(raylib_static ALIAS raylib)
|
||||
else()
|
||||
MESSAGE(STATUS "Building raylib shared library")
|
||||
if (MSVC)
|
||||
if (WIN32)
|
||||
target_compile_definitions(raylib
|
||||
PRIVATE $<BUILD_INTERFACE:BUILD_LIBTYPE_SHARED>
|
||||
INTERFACE $<INSTALL_INTERFACE:USE_LIBTYPE_SHARED>
|
||||
|
Loading…
Reference in New Issue
Block a user