2
0

cmake.patch 811 B

12345678910111213141516171819202122232425262728293031
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 316a8210..52a87c4a 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -184,6 +184,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
  15. @@ -194,7 +198,6 @@ if(CMAKE_BUILD_TYPE STREQUAL Debug OR CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo)
  16. endif()
  17. add_subdirectory("src")
  18. -add_subdirectory("microbench")
  19. if(BUILD_DOCS)
  20. add_subdirectory("doc")
  21. endif()
  22. @@ -202,6 +205,7 @@ if(BUILD_EXAMPLES)
  23. add_subdirectory("examples")
  24. endif()
  25. if(BUILD_TESTING)
  26. + add_subdirectory("microbench")
  27. add_subdirectory("test")
  28. endif()