aboutsummaryrefslogtreecommitdiff
path: root/libs/plugin_python/src/runner
diff options
context:
space:
mode:
Diffstat (limited to 'libs/plugin_python/src/runner')
-rw-r--r--libs/plugin_python/src/runner/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/plugin_python/src/runner/CMakeLists.txt b/libs/plugin_python/src/runner/CMakeLists.txt
index d164460..9c90314 100644
--- a/libs/plugin_python/src/runner/CMakeLists.txt
+++ b/libs/plugin_python/src/runner/CMakeLists.txt
@@ -22,6 +22,9 @@ mo2_default_source_group()
target_link_libraries(runner PUBLIC mo2::uibase PRIVATE pybind11::embed pybind11::qt)
target_include_directories(runner PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_definitions(runner PRIVATE RUNNER_BUILD)
+if(NOT MSVC)
+ target_compile_options(runner PRIVATE -Wno-attributes)
+endif()
if(NOT WIN32 AND Python_SHARED_LIBRARY)
get_filename_component(_pylib_name "${Python_SHARED_LIBRARY}" NAME)
target_compile_definitions(runner PRIVATE