From 8ed554464bf07daebab0a4eab2fd69af79451d20 Mon Sep 17 00:00:00 2001 From: Sid K <58383260+Skaytacium@users.noreply.github.com> Date: Mon, 6 Mar 2023 17:27:35 +0000 Subject: [PATCH] fix(build): Fix DLL build on Windows Changes the DLL export condition to apply to platform WIN32 instead of compiler MSVC --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 690f970a45c4..9087f8eea5d8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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 $ INTERFACE $