diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c24853a1dc9a..7b69e0f9abe7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -188,10 +188,12 @@ if(SHARED) PUBLIC ${GRAPHICS} ) - target_compile_definitions(raylib + if(MSVC) + target_compile_definitions(raylib PRIVATE $ INTERFACE $ - ) + ) + endif() set(PKG_CONFIG_LIBS_EXTRA "")