Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Try to guess JSG_BUNDLE on unknown systems.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 1 Feb 2013 10:03:03 +0000 (11:03 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Fri, 1 Feb 2013 10:03:21 +0000 (11:03 +0100)
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()
-    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}")