cmake.patch 409 B

123456789101112131415
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 9396130..90443bc 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -197,6 +197,10 @@ include_directories("include")
  6. include_directories("${CMAKE_CURRENT_BINARY_DIR}")
  7. add_definitions(-DHAVE_CONFIG_H)
  8. +if(WIN32 AND NOT BUILD_SHARED_LIBS)
  9. + add_definitions(-DFLAC__NO_DLL)
  10. +endif()
  11. +
  12. if(MSVC)
  13. add_definitions(
  14. -D_CRT_SECURE_NO_WARNINGS