Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to guess JSG_BUNDLE on unknown systems.
[simgrid.git] / buildtools / Cmake / MakeLib.cmake
index f4b175a..37a020c 100644 (file)
@@ -59,7 +59,8 @@ if(enable_java)
       set(JSG_BUNDLE "NATIVE/${CMAKE_SYSTEM_NAME}/amd64/")
     endif()
   else()
       set(JSG_BUNDLE "NATIVE/${CMAKE_SYSTEM_NAME}/amd64/")
     endif()
   else()
-    error("Unknown system type. Processor: ${CMAKE_SYSTEM_PROCESSOR}; System: ${CMAKE_SYSTEM_NAME}")
+    message(WARNING "Unknown system type. Processor: ${CMAKE_SYSTEM_PROCESSOR}; System: ${CMAKE_SYSTEM_NAME}")
+    set(JSG_BUNDLE "NATIVE/${CMAKE_SYSTEM_NAME}/${CMAKE_SYSTEM_PROCESSOR/")
   endif()
   message("Native libraries bundled into: ${JSG_BUNDLE}")
 
   endif()
   message("Native libraries bundled into: ${JSG_BUNDLE}")