mirror of
				https://github.com/SuperBFG7/ympd
				synced 2025-10-31 05:43:01 +00:00 
			
		
		
		
	Fix: compiler options for mongoose
This commit is contained in:
		| @@ -39,12 +39,15 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb -fsanitize=address \ | ||||
| 	-fsanitize=alignment -fsanitize=object-size -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow \ | ||||
| 	-fsanitize=nonnull-attribute -fsanitize=returns-nonnull-attribute -fsanitize=bool -fsanitize=enum -fsanitize=vptr -static-libasan") | ||||
|  | ||||
| #compiler flags for mympd src | ||||
| file(GLOB MYMPD_SRC_FILES "src/*.c") | ||||
| set_property(SOURCE ${MYMPD_SRC_FILES} PROPERTY COMPILE_FLAGS "-Wextra -pedantic -Wformat=2 -Wno-unused-parameter -Wshadow -Wwrite-strings -Wstrict-prototypes -Wold-style-definition -Wredundant-decls -Wnested-externs -Wmissing-include-dirs") | ||||
|  | ||||
| #compiler flags for mongoose.c | ||||
| set_property(SOURCE dist/src/mongoose/mongoose.c PROPERTY COMPILE_FLAGS "-Wno-format-truncation") | ||||
|  | ||||
| set (CMAKE_EXE_LINKER_FLAGS "-Wl,-z,relro -Wl,-z,now") | ||||
|  | ||||
| #set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS NS_ENABLE_SSL) | ||||
|  | ||||
| set(SOURCES | ||||
|     src/main.c | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 jcorporation
					jcorporation