mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-26 18:51:02 +08:00
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:
parent
6333823bcf
commit
4064cec28b
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user