forked from premiere/premiere-libtorrent
use target_* commands to configure exceptions
This commit is contained in:
parent
6343794900
commit
41465678cd
|
@ -314,15 +314,15 @@ endif()
|
|||
|
||||
if (exceptions)
|
||||
if (MSVC)
|
||||
add_definitions(/EHsc)
|
||||
target_compile_options(torrent-rasterbar PUBLIC /EHsc)
|
||||
else (MSVC)
|
||||
add_definitions(-fexceptions)
|
||||
target_compile_options(torrent-rasterbar PUBLIC -fexceptions)
|
||||
endif (MSVC)
|
||||
else()
|
||||
if (MSVC)
|
||||
add_definitions(-D_HAS_EXCEPTIONS=0)
|
||||
target_compile_definitions(torrent-rasterbar PUBLIC _HAS_EXCEPTIONS=0)
|
||||
else (MSVC)
|
||||
add_definitions(-fno-exceptions)
|
||||
target_compile_options(torrent-rasterbar PUBLIC -fno-exceptions)
|
||||
endif (MSVC)
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue