Skip to content

Commit 12e1781

Browse files
committed
Disable deprecation warnings on ParModauto json reader.
- It is not useful as we do not plan to update it anytime soon.
1 parent 8672957 commit 12e1781

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

OMCompiler/SimulationRuntime/ParModelica/auto/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ target_link_libraries(ParModelicaAuto PUBLIC omc::simrt::runtime)
2020
target_link_libraries(ParModelicaAuto PUBLIC omc::3rd::tbb)
2121
target_compile_definitions(ParModelicaAuto PRIVATE USE_FLOW_SCHEDULER)
2222

23+
# For now, disable deprecation warning from the json reader. We do not plan to update any time soon.
24+
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
25+
target_compile_options(ParModelicaAuto PRIVATE -Wno-deprecated-declarations)
26+
endif()
27+
2328
# add_executable(ParModelicaAutoTest)
2429
# target_sources(ParModelicaAutoTest PRIVATE test_task_graph.cpp)
2530
# target_link_libraries(ParModelicaAutoTest PRIVATE ParModelicaAuto)

0 commit comments

Comments
 (0)