-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom flags for Dear ImGui integration #76
Comments
Try adding the compile flag to Something like the following could work with older CMake versions: set_source_files_properties("${IMGUI_DIR}/imgui.cpp"
TARGET_DIRECTORY MagnumImGuiIntegration
PROPERTIES COMPILE_DEFINITIONS $<$<CXX_COMPILER_ID:GNU>:__USE_MINGW_ANSI_STDIO=1>
) |
I'm using CMake 3.18 (and willing to upgrade whenever needed). This works: |
I don't get the warning when using |
I think it's Dear ImGui's fault in this case: ocornut/imgui#3592. I don't get these warnings for standard |
I have this problem: https://stackoverflow.com/a/57608651/4818802
I want to add
target_compile_options(??? PUBLIC $<$<CXX_COMPILER_ID:GNU>:-D__USE_MINGW_ANSI_STDIO=1>)
so that ImGui is built with this flag and the flag is forwarded to my project. What would be a correct target? I can not specify this property onMagnumIntegration::ImGui
because it is anALIAS
target.I'm also open to other solutions - preferably through CMake but without touching stuff like
CMAKE_CXX_FLAGS
.The text was updated successfully, but these errors were encountered: