Commit f8115252 authored by Jan Möbius's avatar Jan Möbius

Only include global deps into coreapp if they are found

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11842 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 482a652b
......@@ -115,14 +115,18 @@ set(COREAPP_ADDITIONAL_LINK_LIBRARIES "")
list( FIND global_dependency_list "MPI" found)
if ( NOT found EQUAL -1 )
find_package(MPI)
list(APPEND COREAPP_ADDITIONAL_LINK_LIBRARIES ${MPI_LIBRARIES})
if ( MPI_FOUND )
list(APPEND COREAPP_ADDITIONAL_LINK_LIBRARIES ${MPI_LIBRARIES})
endif()
endif()
# Special Handling for openni
list( FIND global_dependency_list "OPENNI" found)
if ( NOT found EQUAL -1 )
find_package(OPENNI)
list(APPEND COREAPP_ADDITIONAL_LINK_LIBRARIES ${OPENNI_LIBRARY})
if ( OPENNI_FOUND )
list(APPEND COREAPP_ADDITIONAL_LINK_LIBRARIES ${OPENNI_LIBRARY})
endif()
endif()
# ====================================================================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment