Skip to content

Commit

Permalink
Disable ParModAuto cif required boost libs are not found. (#9171)
Browse files Browse the repository at this point in the history
  - Instead of failing configuration completely when the required boost
    libraries are not found, simply disable ParModAuto and continue as it
    is an optional component anyway.

  - We can add a configuration option for this but seems like it is an
    overkill to add an option just for this at the moment.

  - We should probably handle the CPP runtime in a similar manner. Instead
    of requiring users to add yet another option to their configuration
    commandline.
  • Loading branch information
mahge committed Jun 30, 2022
1 parent 4928c1c commit 9ff426e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion OMCompiler/SimulationRuntime/ParModelica/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@

set(CMAKE_INSTALL_INCLUDEDIR ${CMAKE_INSTALL_INCLUDEDIR}/ParModelica)
omc_add_subdirectory(auto)

find_package(Boost COMPONENTS graph chrono)

if(Boost_graph_FOUND AND Boost_chrono_FOUND)
omc_add_subdirectory(auto)
else()
message(STATUS "Required boost libraries (graph, chrono) not found for ParModAuto. Disabling ParModAuto.")
endif()

0 comments on commit 9ff426e

Please sign in to comment.