Skip to content

Commit

Permalink
cmake: move add_subdirectory mpl2 and par
Browse files Browse the repository at this point in the history
The add_subdirectory statements for mpl2 and par are now conditional to
the OS to avoid build and link errors on macOS.

Signed-off-by: Vitor Bandeira <[email protected]>
  • Loading branch information
Vitor Bandeira committed Feb 15, 2024
1 parent d3defc2 commit 5299da6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,8 @@ add_subdirectory(cts)
add_subdirectory(grt)
add_subdirectory(tap)
add_subdirectory(mpl)
add_subdirectory(mpl2)
add_subdirectory(rcx)
add_subdirectory(psm)
add_subdirectory(par)
add_subdirectory(ant)
add_subdirectory(gui)
add_subdirectory(drt)
Expand All @@ -282,6 +280,8 @@ add_subdirectory(utl)
add_subdirectory(dst)
add_subdirectory(pdn)
add_subdirectory(dft)
# mpl2 and par add_subdirectory() statements are conditionally added below
# due to issues with or-tools in macOS systems

################################################################

Expand Down Expand Up @@ -353,6 +353,8 @@ if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(openroad mpl2 par)
target_compile_definitions(openroad PRIVATE ENABLE_MPL2)
target_compile_definitions(openroad PRIVATE ENABLE_PAR)
add_subdirectory(mpl2)
add_subdirectory(par)
else()
message(STATUS "Removing MPL2 and PAR to avoid run time fatal error.")
endif()
Expand Down

0 comments on commit 5299da6

Please sign in to comment.