From 253f777f796f7cacdb65b736780d7c703af00932 Mon Sep 17 00:00:00 2001 From: raspopov Date: Wed, 14 Aug 2024 19:30:43 +0300 Subject: [PATCH] Updated project settings. --- CMakeLists.txt | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43d0d99..be383ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,9 +36,12 @@ project( ByeDPI set( PROJECT_VENDOR "hufrea" ) -add_compile_definitions( _XOPEN_SOURCE=500 ) +set( CMAKE_C_STANDARD 99 ) + +#add_compile_definitions( _XOPEN_SOURCE=500 ) +add_compile_options( -Wall -Wno-unused ) # Optimizations -add_compile_options( $<$>:-O3> ) +add_compile_options( $<$>:-O2> ) # Link time optimizations add_compile_options( $<$>:-flto> ) # Strip debug symbols @@ -85,7 +88,7 @@ if( WIN32 ) # NSIS package - https://sourceforge.net/projects/nsis/ list( APPEND CPACK_GENERATOR NSIS ) set( CPACK_NSIS_MENU_LINKS - "readme.txt" "Read Me" + "README.md" "Read Me" "byedpi.bat" "Run standalone" "proxy_reset.bat" "Proxy reset" "proxy_set.bat" "Proxy setup" @@ -123,7 +126,7 @@ install( TARGETS ciadpi ) install( FILES - readme.txt + README.md TYPE DOC )