mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-30 16:00:55 +00:00
- Fixed some cmake --warn-uninitialized messages
This commit is contained in:
parent
2501dc6df6
commit
b329a34a58
3 changed files with 32 additions and 0 deletions
|
@ -82,6 +82,11 @@ if( MSVC )
|
||||||
string(REPLACE "/MD " " " CMAKE_C_FLAGS_MINSIZEREL ${CMAKE_C_FLAGS_MINSIZEREL} )
|
string(REPLACE "/MD " " " CMAKE_C_FLAGS_MINSIZEREL ${CMAKE_C_FLAGS_MINSIZEREL} )
|
||||||
string(REPLACE "/MD " " " CMAKE_C_FLAGS_RELWITHDEBINFO ${CMAKE_C_FLAGS_RELWITHDEBINFO} )
|
string(REPLACE "/MD " " " CMAKE_C_FLAGS_RELWITHDEBINFO ${CMAKE_C_FLAGS_RELWITHDEBINFO} )
|
||||||
string(REPLACE " /GR" " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} )
|
string(REPLACE " /GR" " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} )
|
||||||
|
else( MSVC )
|
||||||
|
set( REL_LINKER_FLAGS "" )
|
||||||
|
set( ALL_C_FLAGS "" )
|
||||||
|
set( REL_C_FLAGS "" )
|
||||||
|
set( DEB_C_FLAGS "" )
|
||||||
endif( MSVC )
|
endif( MSVC )
|
||||||
|
|
||||||
set( CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ${REL_LINKER_FLAGS}" )
|
set( CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} ${REL_LINKER_FLAGS}" )
|
||||||
|
|
|
@ -50,6 +50,20 @@ set( MINOR_VERSIONS "50" "49" "48" "47" "46" "45" "44" "43" "42" "41"
|
||||||
"15" "14" "13" "12" "11" "10" "09" "08" "07" "06" "05" "04" "03"
|
"15" "14" "13" "12" "11" "10" "09" "08" "07" "06" "05" "04" "03"
|
||||||
"02" "01" "00" )
|
"02" "01" "00" )
|
||||||
set( MAJOR_VERSIONS "44" "34" "28" "26" "24" "22" "20" )
|
set( MAJOR_VERSIONS "44" "34" "28" "26" "24" "22" "20" )
|
||||||
|
|
||||||
|
if( NOT FMOD_DIR_VERSIONS )
|
||||||
|
set( FMOD_DIR_VERSIONS "" )
|
||||||
|
endif( NOT FMOD_DIR_VERSIONS )
|
||||||
|
if( NOT FMOD_VERSIONS )
|
||||||
|
set( FMOD_VERSIONS "" )
|
||||||
|
endif( NOT FMOD_VERSIONS )
|
||||||
|
if( NOT FMOD_LOCAL_INC_DIRS )
|
||||||
|
set( FMOD_LOCAL_INC_DIRS "" )
|
||||||
|
endif( NOT FMOD_LOCAL_INC_DIRS )
|
||||||
|
if( NOT FMOD_LOCAL_LIB_DIRS )
|
||||||
|
set( FMOD_LOCAL_LIB_DIRS "" )
|
||||||
|
endif( NOT FMOD_LOCAL_LIB_DIRS )
|
||||||
|
|
||||||
set( FMOD_DIR_VERSIONS ${FMOD_DIR_VERSIONS} "../fmod" )
|
set( FMOD_DIR_VERSIONS ${FMOD_DIR_VERSIONS} "../fmod" )
|
||||||
foreach( majver ${MAJOR_VERSIONS} )
|
foreach( majver ${MAJOR_VERSIONS} )
|
||||||
foreach( minver ${MINOR_VERSIONS} )
|
foreach( minver ${MINOR_VERSIONS} )
|
||||||
|
@ -62,6 +76,10 @@ foreach( majver ${MAJOR_VERSIONS} )
|
||||||
endforeach( dir ${FMOD_DIR_VERSIONS} )
|
endforeach( dir ${FMOD_DIR_VERSIONS} )
|
||||||
endforeach( majver ${MAJOR_VERSIONS} )
|
endforeach( majver ${MAJOR_VERSIONS} )
|
||||||
|
|
||||||
|
if( NOT ZDOOM_LIBS )
|
||||||
|
set( ZDOOM_LIBS "" )
|
||||||
|
endif( NOT ZDOOM_LIBS )
|
||||||
|
|
||||||
if( WIN32 )
|
if( WIN32 )
|
||||||
if( X64 )
|
if( X64 )
|
||||||
set( WIN_TYPE Win64 )
|
set( WIN_TYPE Win64 )
|
||||||
|
@ -346,12 +364,16 @@ if( NOT NO_ASM )
|
||||||
endif( UNIX )
|
endif( UNIX )
|
||||||
if( WIN32 )
|
if( WIN32 )
|
||||||
set( FIXRTEXT fixrtext )
|
set( FIXRTEXT fixrtext )
|
||||||
|
else( WIN32 )
|
||||||
|
set( FIXRTEXT "" )
|
||||||
endif( WIN32 )
|
endif( WIN32 )
|
||||||
message( STATUS "Selected assembler: ${ASSEMBLER}" )
|
message( STATUS "Selected assembler: ${ASSEMBLER}" )
|
||||||
MACRO( ADD_ASM_FILE indir infile )
|
MACRO( ADD_ASM_FILE indir infile )
|
||||||
set( ASM_OUTPUT_${infile} "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/zdoom.dir/${indir}/${infile}${ASM_OUTPUT_EXTENSION}" )
|
set( ASM_OUTPUT_${infile} "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/zdoom.dir/${indir}/${infile}${ASM_OUTPUT_EXTENSION}" )
|
||||||
if( WIN32 )
|
if( WIN32 )
|
||||||
set( FIXRTEXT_${infile} COMMAND ${FIXRTEXT} "${ASM_OUTPUT_${infile}}" )
|
set( FIXRTEXT_${infile} COMMAND ${FIXRTEXT} "${ASM_OUTPUT_${infile}}" )
|
||||||
|
else( WIN32 )
|
||||||
|
set( FIXRTEXT_${infile} COMMAND "" )
|
||||||
endif( WIN32 )
|
endif( WIN32 )
|
||||||
add_custom_command( OUTPUT ${ASM_OUTPUT_${infile}}
|
add_custom_command( OUTPUT ${ASM_OUTPUT_${infile}}
|
||||||
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/zdoom.dir/${indir}
|
COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/zdoom.dir/${indir}
|
||||||
|
@ -567,6 +589,9 @@ endif( WIN32 )
|
||||||
if( NO_ASM )
|
if( NO_ASM )
|
||||||
add_definitions( -DNOASM )
|
add_definitions( -DNOASM )
|
||||||
else( NO_ASM )
|
else( NO_ASM )
|
||||||
|
if( NOT ASM_SOURCES )
|
||||||
|
set( ASM_SOURCES "" )
|
||||||
|
endif( NOT ASM_SOURCES )
|
||||||
if( X64 )
|
if( X64 )
|
||||||
ADD_ASM_FILE( asm_x86_64 tmap3 )
|
ADD_ASM_FILE( asm_x86_64 tmap3 )
|
||||||
else( X64 )
|
else( X64 )
|
||||||
|
|
|
@ -15,6 +15,8 @@ if( WIN32 )
|
||||||
set( TRUSTINFO trustinfo.rc )
|
set( TRUSTINFO trustinfo.rc )
|
||||||
endif( MSVC_VERSION GREATER 1399 )
|
endif( MSVC_VERSION GREATER 1399 )
|
||||||
endif( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
|
endif( "${CMAKE_C_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" )
|
||||||
|
else( WIN32 )
|
||||||
|
set( TRUSTINFO "" )
|
||||||
endif( WIN32 )
|
endif( WIN32 )
|
||||||
|
|
||||||
add_executable( updaterevision updaterevision.c ${TRUSTINFO} )
|
add_executable( updaterevision updaterevision.c ${TRUSTINFO} )
|
||||||
|
|
Loading…
Reference in a new issue