mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge pull request #7149 from heinrich5991/pr_ddnet_cmakelists_cleanup
Don't compile `.h.in`, remove C compiler flags
This commit is contained in:
commit
4108ccd55c
|
@ -299,10 +299,6 @@ if(NOT MSVC AND NOT HAIKU)
|
|||
endif()
|
||||
|
||||
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wall)
|
||||
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN
|
||||
$<$<COMPILE_LANGUAGE:C>:-Wdeclaration-after-statement>
|
||||
-Wdeclaration-after-statement
|
||||
)
|
||||
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wextra)
|
||||
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wno-psabi) # parameter passing for argument of type ‘__gnu_cxx::__normal_iterator<CCommandProcessorFragment_Vulkan::SMemoryBlock<1>*, std::vector<CCommandProcessorFragment_Vulkan::SMemoryBlock<1>, std::allocator<CCommandProcessorFragment_Vulkan::SMemoryBlock<1> > > >’ changed in GCC 7.1
|
||||
add_cxx_compiler_flag_if_supported(OUR_FLAGS_OWN -Wno-unused-parameter)
|
||||
|
@ -380,7 +376,7 @@ function(set_glob VAR GLOBBING EXTS DIRECTORY) # ...
|
|||
endfunction()
|
||||
|
||||
function(set_src VAR GLOBBING DIRECTORY) # ...
|
||||
set_glob(${VAR} ${GLOBBING} "c;cpp;h;h.in" ${DIRECTORY} ${ARGN})
|
||||
set_glob(${VAR} ${GLOBBING} "c;cpp;h" ${DIRECTORY} ${ARGN})
|
||||
set(${VAR} ${${VAR}} PARENT_SCOPE)
|
||||
set(CHECKSUM_SRC ${CHECKSUM_SRC} ${${VAR}} PARENT_SCOPE)
|
||||
endfunction()
|
||||
|
@ -1996,7 +1992,6 @@ set_src(GAME_SHARED GLOB src/game
|
|||
teamscore.h
|
||||
tuning.h
|
||||
variables.h
|
||||
version.h.in
|
||||
voting.h
|
||||
)
|
||||
# A bit hacky, but these are needed to register all the UUIDs, even for stuff
|
||||
|
|
Loading…
Reference in a new issue