mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 21:44:31 +00:00
[CMAKE]
- enable -Werror by default on gcc build svn path=/trunk/; revision=53585
This commit is contained in:
parent
9d3ef58063
commit
e59cf523ac
|
@ -22,3 +22,7 @@ set_module_type(winhlp32 win32gui)
|
|||
target_link_libraries(winhlp32 wine)
|
||||
add_importlibs(winhlp32 user32 gdi32 shell32 comctl32 comdlg32 msvcrt kernel32 ntdll)
|
||||
add_cd_file(TARGET winhlp32 DESTINATION reactos FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(winhlp32)
|
||||
endif()
|
||||
|
|
|
@ -18,3 +18,7 @@ set_module_type(wordpad win32gui)
|
|||
target_link_libraries(wordpad wine uuid)
|
||||
add_importlibs(wordpad comdlg32 ole32 shell32 user32 gdi32 advapi32 comctl32 msvcrt kernel32 ntdll)
|
||||
add_cd_file(TARGET wordpad DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(wordpad)
|
||||
endif()
|
||||
|
|
|
@ -5,3 +5,7 @@ add_executable(write write.c rsrc.rc)
|
|||
set_module_type(write win32gui UNICODE)
|
||||
add_importlibs(write user32 gdi32 msvcrt kernel32)
|
||||
add_cd_file(TARGET write DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(write)
|
||||
endif()
|
||||
|
|
|
@ -5,6 +5,9 @@ add_compile_flags("-pipe -fms-extensions")
|
|||
# Debugging (Note: DWARF-4 on 4.5.1 when we ship)
|
||||
add_compile_flags("-gdwarf-2 -g2 -femit-struct-debug-detailed=none -feliminate-unused-debug-types")
|
||||
|
||||
# Do not allow warnings
|
||||
add_compile_flags("-Werror")
|
||||
|
||||
# For some reason, cmake sets -fPIC, and we don't want it
|
||||
string(REPLACE "-fPIC" "" CMAKE_SHARED_LIBRARY_ASM_FLAGS ${CMAKE_SHARED_LIBRARY_ASM_FLAGS})
|
||||
|
||||
|
@ -349,3 +352,7 @@ function(CreateBootSectorTarget2 _target_name _asm_file _binary_file _base_addre
|
|||
add_custom_target(${_target_name} ALL DEPENDS ${_binary_file})
|
||||
|
||||
endfunction()
|
||||
|
||||
function(allow_warnings __module)
|
||||
add_target_compile_flags(${__module} -Wno-error)
|
||||
endfunction()
|
||||
|
|
6
reactos/dll/3rdparty/libtiff/CMakeLists.txt
vendored
6
reactos/dll/3rdparty/libtiff/CMakeLists.txt
vendored
|
@ -50,8 +50,12 @@ add_library(libtiff SHARED
|
|||
tif_write.c
|
||||
tif_zip.c)
|
||||
|
||||
set_entrypoint(libtiff 0)
|
||||
set_module_type(libtiff win32dll ENTRYPOINT 0)
|
||||
target_link_libraries(libtiff zlib getopt)
|
||||
add_importlibs(libtiff user32 msvcrt kernel32)
|
||||
add_dependencies(libtiff psdk)
|
||||
add_cd_file(TARGET libtiff DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(libtiff)
|
||||
endif()
|
||||
|
|
4
reactos/dll/3rdparty/libxslt/CMakeLists.txt
vendored
4
reactos/dll/3rdparty/libxslt/CMakeLists.txt
vendored
|
@ -44,3 +44,7 @@ endif()
|
|||
add_dependencies(libxslt psdk)
|
||||
add_pch(libxslt libxslt.h)
|
||||
add_cd_file(TARGET libxslt DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(libxslt)
|
||||
endif()
|
||||
|
|
6
reactos/dll/3rdparty/mesa32/CMakeLists.txt
vendored
6
reactos/dll/3rdparty/mesa32/CMakeLists.txt
vendored
|
@ -260,7 +260,11 @@ endif()
|
|||
|
||||
add_library(mesa32 SHARED ${SOURCE})
|
||||
add_pch(mesa32 src/main/glheader.h)
|
||||
set_entrypoint(mesa32 0)
|
||||
set_module_type(mesa32 win32dll ENTRYPOINT 0)
|
||||
add_importlibs(mesa32 gdi32 user32 msvcrt kernel32 ntdll)
|
||||
add_dependencies(mesa32 psdk)
|
||||
add_cd_file(TARGET mesa32 DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(mesa32)
|
||||
endif()
|
||||
|
|
|
@ -72,3 +72,7 @@ add_importlibs(quartz
|
|||
|
||||
add_pch(quartz quartz_private.h)
|
||||
add_cd_file(TARGET quartz DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(quartz)
|
||||
endif()
|
||||
|
|
|
@ -70,3 +70,7 @@ add_dependencies(wined3d wineheaders)
|
|||
add_pch(wined3d wined3d_private.h)
|
||||
add_cd_file(TARGET wined3d DESTINATION reactos/system32 FOR all)
|
||||
add_importlib_target(wined3d.spec)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(wined3d)
|
||||
endif()
|
||||
|
|
|
@ -15,7 +15,7 @@ list(APPEND SOURCE
|
|||
|
||||
add_library(cabinet SHARED ${SOURCE})
|
||||
|
||||
set_entrypoint(cabinet 0)
|
||||
set_module_type(cabinet win32dll ENTRYPOINT 0)
|
||||
target_link_libraries(cabinet wine)
|
||||
add_importlibs(cabinet kernel32 ntdll)
|
||||
add_importlib_target(cabinet.spec)
|
||||
|
|
|
@ -24,6 +24,8 @@ set_module_type(itss win32dll)
|
|||
target_link_libraries(itss uuid wine)
|
||||
if(MSVC)
|
||||
target_link_libraries(itss itss_guid)
|
||||
else()
|
||||
allow_warnings(itss)
|
||||
endif()
|
||||
|
||||
add_importlibs(itss
|
||||
|
|
|
@ -62,3 +62,7 @@ add_importlibs(jscript
|
|||
add_pch(jscript jscript.h)
|
||||
add_dependencies(jscript jsglobal)
|
||||
add_cd_file(TARGET jscript DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(jscript)
|
||||
endif()
|
||||
|
|
|
@ -33,3 +33,7 @@ add_importlibs(localspl
|
|||
ntdll)
|
||||
|
||||
add_cd_file(TARGET localspl DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(localspl)
|
||||
endif()
|
||||
|
|
|
@ -10,8 +10,13 @@ list(APPEND SOURCE
|
|||
|
||||
add_library(mciseq SHARED ${SOURCE})
|
||||
|
||||
set_entrypoint(mciseq 0)
|
||||
set_module_type(mciseq win32dll ENTRYPOINT 0)
|
||||
|
||||
target_link_libraries(mciseq wine)
|
||||
add_importlibs(mciseq winmm user32 kernel32 ntdll msvcrt)
|
||||
add_dependencies(mciseq psdk)
|
||||
add_cd_file(TARGET mciseq DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(mciseq)
|
||||
endif()
|
||||
|
|
|
@ -13,8 +13,13 @@ list(APPEND SOURCE
|
|||
|
||||
add_library(mciwave SHARED ${SOURCE})
|
||||
|
||||
set_entrypoint(mciwave 0)
|
||||
set_module_type(mciwave win32dll ENTRYPOINT 0)
|
||||
|
||||
target_link_libraries(mciwave wine)
|
||||
add_importlibs(mciwave user32 winmm msvcrt kernel32 ntdll)
|
||||
add_dependencies(mciwave psdk)
|
||||
add_cd_file(TARGET mciwave DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(mciwave)
|
||||
endif()
|
||||
|
|
|
@ -50,3 +50,7 @@ add_delay_importlibs(rpcrt4 iphlpapi wininet secur32 user32)
|
|||
add_importlibs(rpcrt4 msvcrt advapi32 ws2_32 kernel32 ntdll)
|
||||
add_cd_file(TARGET rpcrt4 DESTINATION reactos/system32 FOR all)
|
||||
add_importlib_target(rpcrt4.spec)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(rpcrt4)
|
||||
endif()
|
||||
|
|
|
@ -53,3 +53,7 @@ add_dependencies(shdocvw shdocvw_v1)
|
|||
add_pch(shdocvw shdocvw.h)
|
||||
add_cd_file(TARGET shdocvw DESTINATION reactos/system32 FOR all)
|
||||
add_importlib_target(shdocvw.spec)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(shdocvw)
|
||||
endif()
|
||||
|
|
|
@ -22,3 +22,7 @@ add_delay_importlibs(winhttp crypt32)
|
|||
add_importlibs(winhttp shlwapi wininet ws2_32 msvcrt advapi32 kernel32 ntdll)
|
||||
add_importlib_target(winhttp.spec)
|
||||
add_cd_file(TARGET winhttp DESTINATION reactos/system32 FOR all)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(winhttp)
|
||||
endif()
|
||||
|
|
|
@ -34,3 +34,7 @@ add_delay_importlibs(wininet secur32 crypt32)
|
|||
add_importlibs(wininet mpr shlwapi shell32 user32 advapi32 ws2_32 msvcrt kernel32 ntdll)
|
||||
add_cd_file(TARGET wininet DESTINATION reactos/system32 FOR all)
|
||||
add_importlib_target(wininet.spec)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(wininet)
|
||||
endif()
|
||||
|
|
4
reactos/lib/3rdparty/libxml2/CMakeLists.txt
vendored
4
reactos/lib/3rdparty/libxml2/CMakeLists.txt
vendored
|
@ -59,3 +59,7 @@ list(APPEND SOURCE
|
|||
add_library(libxml2 ${SOURCE})
|
||||
target_link_libraries(libxml2 oldnames)
|
||||
add_dependencies(libxml2 psdk)
|
||||
|
||||
if(NOT MSVC)
|
||||
allow_warnings(libxml2)
|
||||
endif()
|
||||
|
|
|
@ -58,3 +58,6 @@ list(APPEND SOURCE
|
|||
|
||||
add_library(lwip ${SOURCE})
|
||||
add_dependencies(lwip bugcodes)
|
||||
if(NOT MSVC)
|
||||
allow_warnings(lwip)
|
||||
endif()
|
||||
|
|
|
@ -22,4 +22,5 @@ else()
|
|||
add_library(rossym ${SOURCE})
|
||||
add_pch(rossym precomp.h)
|
||||
add_dependencies(rossym psdk bugcodes)
|
||||
allow_warnings(rossym)
|
||||
endif()
|
||||
|
|
|
@ -68,6 +68,7 @@ set_source_files_properties(startup/crtdll.c PROPERTIES COMPILE_DEFINITIONS CRTD
|
|||
|
||||
if(NOT MSVC)
|
||||
target_link_libraries(msvcrtex oldnames)
|
||||
allow_warnings(msvcrtex)
|
||||
endif()
|
||||
|
||||
add_dependencies(msvcrtex psdk asm)
|
||||
|
|
Loading…
Reference in a new issue