You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
592 B

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -12,12 +12,7 @@ function(define_file_basename_for_source
  4. endforeach()
  5. endfunction()
  6. -set(CMAKE_BUILD_TYPE "Debug")
  7. -#set(CMAKE_BUILD_TYPE "Release")
  8. -
  9. -set(CMAKE_C_FLAGS "-Wall -Wextra --pedantic -Wno-strict-aliasing -Wno-variadic-macros")
  10. -set(CMAKE_C_FLAGS_DEBUG "-g -DDEBUG")
  11. -set(CMAKE_C_FLAGS_RELEASE "-O2")
  12. +set(CMAKE_BUILD_TYPE "Release")
  13. if ((CMAKE_C_COMPILER_ID MATCHES GNU AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 9) OR
  14. (CMAKE_C_COMPILER_ID MATCHES Clang AND CMAKE_C_COMPILER_VERSION VERSION_GREATER_EQUAL 10))