Commit fa8549fa authored by Alex Richardson's avatar Alex Richardson

No longer compile with -fno-rtti

Otherwise we get a crash in KConfigDialogManager::setupWidget which uses
dynamic_cast<>. Generally this is quite risky since the other libraries
might be using RTTI features. This used to work since the dynamic_cast
was only added to KConfigDialogManager recently. Keep RTTI on now so
that something like this doesn't happen anymore (premature optimization)
parent f6d8ef98
......@@ -52,7 +52,9 @@ find_package(KF5 REQUIRED
)
if( UNIX )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++0x -fno-rtti")
add_compile_options(-Wall)
# enable this to reduce the file sizes (might crash)
# add_compile_options(-fno-rtti)
endif()
find_package(QCA2 2.1.0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment