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:
Sid K 2023-03-07 01:40:18 +05:30 committed by GitHub
parent 8f7e2cd179
commit 0b18882a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>