-if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
- option(enable_smpi "This variable set smpi lib." off) #for the moment it doesn't compil with MacOS
-else(CMAKE_SYSTEM_NAME MATCHES "Darwin")
- option(enable_smpi "This variable set smpi lib." on)
-endif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
-option(enable_gtnets "This variable set the gtnets context." on)
-option(enable_java "This variable set the java context." off)
-option(enable_lua "This variable set lua use." on)
-option(enable_ruby "This variable set ruby use." on)
+if(WIN32 OR APPLE)
+set(enable_smpi off CACHE TYPE INTERNAL FORCE)
+set(enable_lua off CACHE TYPE INTERNAL FORCE)
+set(enable_ruby off CACHE TYPE INTERNAL FORCE)
+endif(WIN32 OR APPLE)