Set of fixes for the DA + updated documentation (Johny)
[u/mrichter/AliRoot.git] / cmake / ALICE_CMake.cmake
index 0603fbc..de3286d 100644 (file)
@@ -306,15 +306,17 @@ macro(ALICE_BuildPackage)
   endif(CINTAUTOLINK)
 
   if(lib)
-    list(APPEND ${MODULE}LIBS ${PACKAGE})
+    list(APPEND PMLIBS ${PACKAGE})
     list(APPEND ALLLIBS ${PACKAGE})
-    list(APPEND ${MODULE}ALIBS ${PACKAGE}_a)
+    list(APPEND PMALIBS ${PACKAGE}_a)
     list(APPEND ALLALIBS ${PACKAGE}_a)
     list(APPEND BINLIBS ${PACKAGE})
   else()
     list(APPEND ALLEXECS ${PACKAGE})
   endif(lib)
-
+  set(${MODULE}ALIBS "${PMALIBS}" PARENT_SCOPE)
+  set(${MODULE}LIBS "${PMLIBS}" PARENT_SCOPE)
+  set(${MODULE}INC "${EINCLUDE}" PARENT_SCOPE)
   list(APPEND INCLUDEFILES ${PEXPORTDEST})
   ALICE_CopyHeaders()
   if(WITHDICT)