[CMAKE] Get rid of add_compile_flags

Use add_compile_options and the like instead
This commit is contained in:
Jérôme Gardou 2020-09-21 12:16:02 +02:00 committed by Jérôme Gardou
parent 84621b3634
commit 00ed72d7e8
26 changed files with 158 additions and 198 deletions

View file

@ -1,10 +1,9 @@
if(GCC)
add_compile_flags("-Wno-stringop-overflow")
endif()
add_executable(createspec createspec.c)
set_module_type(createspec win32cui)
target_link_libraries(createspec wine)
if (NOT MSVC)
target_compile_options(createspec PRIVATE -Wno-stringop-overflow)
endif()
add_importlibs(createspec dbghelp msvcrt kernel32)
add_cd_file(TARGET createspec DESTINATION reactos/system32 FOR all)

View file

@ -1,6 +1,5 @@
include_directories(BEFORE include)
add_compile_flags("-D__USE_W32_SOCKETS")
list(APPEND SOURCE
config.cpp
@ -15,6 +14,7 @@ list(APPEND SOURCE
add_executable(roshttpd ${SOURCE} common/roshttpd.rc)
target_link_libraries(roshttpd cppstl)
set_target_cpp_properties(roshttpd WITH_EXCEPTIONS)
target_compile_definitions(roshttpd PRIVATE __USE_W32_SOCKETS)
set_module_type(roshttpd win32cui)
add_importlibs(roshttpd user32 ws2_32 msvcrt kernel32)
add_cd_file(TARGET roshttpd DESTINATION reactos/system32 FOR all)