Skip to content

Commit

Permalink
add -Wno-unknown-pragmas to gcc options
Browse files Browse the repository at this point in the history
this is the same as msvc's `/wd4068`
  • Loading branch information
ab9rf committed Sep 16, 2024
1 parent 517d20b commit 1c36881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ if(UNIX)
# default to hidden symbols
# ensure compatibility with older CPUs
add_definitions(-DLINUX_BUILD)
set(GCC_COMMON_FLAGS "-fvisibility=hidden -mtune=generic -Wall -Werror -Wl,--disable-new-dtags")
set(GCC_COMMON_FLAGS "-fvisibility=hidden -mtune=generic -Wall -Werror -Wl,--disable-new-dtags -Wno-unknown-pragmas")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COMMON_FLAGS}")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GCC_COMMON_FLAGS}")
if(DFHACK_BUILD_64)
Expand Down

0 comments on commit 1c36881

Please sign in to comment.