diff --git a/src/libprojectM/CMakeLists.txt b/src/libprojectM/CMakeLists.txt index c7121d46b..7569c6e6c 100644 --- a/src/libprojectM/CMakeLists.txt +++ b/src/libprojectM/CMakeLists.txt @@ -1,19 +1,15 @@ add_compile_definitions( DATADIR_PATH="${PROJECTM_DATADIR_PATH}" $,GL_SILENCE_DEPRECATION,> + $,NOMINMAX,> + $,WIN32_LEAN_AND_MEAN,> + $,STBI_NO_DDS,> ) if(CMAKE_SYSTEM_NAME STREQUAL "Windows") # dirent.h support set(MSVC_EXTRA_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/msvc") include_directories("${MSVC_EXTRA_INCLUDE_DIR}") - - # Additional preprocessor definitions for Windows builds - add_compile_definitions( - NOMINMAX - WIN32_LEAN_AND_MEAN - STBI_NO_DDS - ) endif() # List of targets used in export().