Skip to content

Commit

Permalink
fix: Link dependencies of image++ for non-Linux systems
Browse files Browse the repository at this point in the history
  • Loading branch information
schuhschuh committed Dec 11, 2014
1 parent 7372d12 commit 623fa01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion image++/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ irtkMeanFilter.cc
)

ADD_LIBRARY(image++ ${IMAGE_SRCS} ${IMAGE_INCLUDES})
TARGET_LINK_LIBRARIES(image++ rt)
if(UNIX AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
TARGET_LINK_LIBRARIES(image++ rt)
endif()

INSTALL_FILES(/include FILES ${IMAGE_INCLUDES})

0 comments on commit 623fa01

Please sign in to comment.