@ -36,23 +36,24 @@ add_compile_options(-Wvla)
add_compile_options ( $< $<COMPILE_LANGUAGE:CXX > :-fpermissive> )
add_compile_options ( -Wno-unused-function -Wno-deprecated-declarations -Wno-unknown-pragmas )
# g a h , c a n ' t r e c a l l w h i c h - W n o f l a g i s e x c l u s i v e t o c l a n g
# - W n o - c a s t - f u n c t i o n - t y p e i s G N U e x c l u s i v e . . i t h i n k
if ( WOW64_CROSS_COMPILE OR WIN64_CROSS_COMPILE )
# d y n a m i c l i n k i n g d o e s t h i s a l l t h e t i m e
add_compile_options ( -Wno-cast-function-type )
if ( USING_CLANG )
add_compile_options ( -Wno-unused-command-line-argument -Wno-c++11-narrowing )
add_compile_options ( $< $<COMPILE_LANGUAGE:C > :-Wno-bad-function-cast> )
# b e c a u s e c l a n g i s i n s a n e e n o u g h t o i n l i n e w h o l e s e c t i o n s o f t h e C + + l i b r a r y !
# M a y h a v e b e e n f i x e d i n l l v m - 7 .
set ( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--allow-multiple-definition --rtlib=libgcc" )
else ( )
# f o u n d i t . t h i s i s G N U o n l y
add_compile_options ( -Wno-cast-function-type )
endif ( USING_CLANG )
else ( )
add_compile_options ( -Wno-cast-function-type )
endif ( )
if ( WIN32 )
add_compile_options ( $< $<COMPILE_LANGUAGE:C > :-Wno-bad-function-cast> )
add_compile_options ( -Wno-cast-function-type )
set ( FS_LIB stdc++fs )
endif ( WIN32 )