Skip to content

Commit

Permalink
make CMakeLists.txt warning hack unix-only
Browse files Browse the repository at this point in the history
  • Loading branch information
goshhhy committed Oct 31, 2024
1 parent 3e70d9f commit 78d7870
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ option(VRX_OLD_VOTE "Use old vote system." FALSE)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_STANDARD_REQUIRED TRUE)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-return-mismatch -Wno-incompatible-pointer-types -Wno-implicit-function-declaration")

# Source files
file(GLOB_RECURSE VRX_FILES ./src/*.c)

Expand All @@ -37,6 +35,7 @@ if (WIN32)
add_definitions(-DWIN32)
#file (GLOB CC_PLATFORM_FILES source/Platform/windows/*)
elseif (UNIX)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-return-mismatch -Wno-incompatible-pointer-types -Wno-implicit-function-declaration")
# Get machine hardware name (arch), force 386 (if applicable), strip newlines, and store in ARCH
execute_process(COMMAND uname -m COMMAND sed s/i.86/i386/ COMMAND tr -d \n OUTPUT_VARIABLE ARCH)
set(CC_LIB_NAME game${ARCH})
Expand Down

0 comments on commit 78d7870

Please sign in to comment.