Remove compile options from library

In some cases using flag:`D_GLIBCXX_DEBUG` will cause some memory corruption
errors. For example our executable will link to this library without
`D_GLIBCXX_DEBUG` flag on it self.

Do not investigate it deeply but probably hardcoding compile options in library
isn't good idea.
This commit is contained in:
Dawid Drozd 2017-09-20 19:50:33 +02:00
parent 6333823bcf
commit 4064cec28b

View File

@ -28,19 +28,6 @@ TARGET_COMPILE_OPTIONS(EventBus PRIVATE
-Werror
)
SET(EVENTBUS_DEBUG_FLAGS
-O0 -fno-inline
-DDEBUG
-D_GLIBCXX_DEBUG -D_GLIBCXX_DEBUG_PEDANTIC
)
SET(EVENTBUS_RELEASE_FLAGS
-DNDEBUG
)
TARGET_COMPILE_OPTIONS(EventBus PRIVATE "$<$<CONFIG:DEBUG>:${EVENTBUS_DEBUG_FLAGS}>")
TARGET_COMPILE_OPTIONS(EventBus PRIVATE "$<$<CONFIG:RELEASE>:${EVENTBUS_RELEASE_FLAGS}>")
SET_TARGET_PROPERTIES(EventBus PROPERTIES
CXX_STANDARD 14
)