Skip to content
Snippets Groups Projects
Commit 4881ce67 authored by Keith François's avatar Keith François
Browse files

MacOSX compatibility: avoid dangerous TARGET_LINK_LIBRARIES

This crashes the linkage because of the particular link
with the frameworks (here the framework Acceleration).
parent 3ce96726
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,10 @@ IF (UNIX)
ENDIF (UNIX)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${JRL_MAL_LDFLAGS_OTHER})
IF (UNIX AND NOT APPLE)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} ${JRL_MAL_LDFLAGS_OTHER})
ENDIF (UNIX AND NOT APPLE)
INSTALL(TARGETS ${LIBRARY_NAME}
DESTINATION lib)
......
......@@ -46,7 +46,9 @@ MACRO(DYNAMIC_GRAPH_TEST NAME)
# Search for jrl-mal.
INCLUDE_DIRECTORIES(${JRL_MAL_INCLUDE_DIRS})
LINK_DIRECTORIES(${JRL_MAL_LIBRARY_DIRS})
TARGET_LINK_LIBRARIES(${NAME} ${JRL_MAL_LDFLAGS})
IF(UNIX AND NOT APPLE)
TARGET_LINK_LIBRARIES(${NAME} ${JRL_MAL_LDFLAGS})
ENDIF(UNIX AND NOT APPLE)
ENDMACRO(DYNAMIC_GRAPH_TEST)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment