Skip to content

Commit 1c36881

Browse files
committed
add -Wno-unknown-pragmas to gcc options
this is the same as msvc's `/wd4068`
1 parent 517d20b commit 1c36881

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ if(UNIX)
224224
# default to hidden symbols
225225
# ensure compatibility with older CPUs
226226
add_definitions(-DLINUX_BUILD)
227-
set(GCC_COMMON_FLAGS "-fvisibility=hidden -mtune=generic -Wall -Werror -Wl,--disable-new-dtags")
227+
set(GCC_COMMON_FLAGS "-fvisibility=hidden -mtune=generic -Wall -Werror -Wl,--disable-new-dtags -Wno-unknown-pragmas")
228228
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_COMMON_FLAGS}")
229229
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${GCC_COMMON_FLAGS}")
230230
if(DFHACK_BUILD_64)

0 commit comments

Comments
 (0)