Skip to content

Commit

Permalink
Fix pythonfmu-export module on OSX (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Nov 20, 2023
1 parent 1fe99d4 commit 61e4cc5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pythonfmu/pythonfmu-export/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ target_include_directories(pythonfmu-export
"${CMAKE_CURRENT_SOURCE_DIR}"
)

target_link_libraries(pythonfmu-export
PRIVATE
${Python3_LIBRARIES}
)
if (WIN32)
target_link_libraries(pythonfmu-export PRIVATE ${Python3_LIBRARIES})
elseif (APPLE)
set_target_properties(pythonfmu-export PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif ()
# and on linux, dont link!

if (WIN32)
set_target_properties(pythonfmu-export
Expand Down

0 comments on commit 61e4cc5

Please sign in to comment.