Skip to content

Commit

Permalink
Set a proper option for each compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
certik committed Oct 8, 2019
1 parent df91895 commit eefd86e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ if (WITH_LLVM)
#set_property(TARGET p::llvm PROPERTY INTERFACE_COMPILE_OPTIONS
# ${LLVM_DEFINITIONS})
set_property(TARGET p::llvm PROPERTY INTERFACE_COMPILE_OPTIONS
$<$<COMPILE_LANGUAGE:CXX>:-fno-rtti>)
$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang,GNU>:-fno-rtti>
$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/GR->)
set_property(TARGET p::llvm PROPERTY INTERFACE_LINK_LIBRARIES
${llvm_libs})
endif()
Expand Down

0 comments on commit eefd86e

Please sign in to comment.