mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-25 10:22:33 -05:00
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:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user