--- OMCompiler/Compiler/runtime/CMakeLists.txt.orig	2023-04-14 14:33:28 UTC
+++ OMCompiler/Compiler/runtime/CMakeLists.txt
@@ -234,7 +234,11 @@ endif()
 if (MINGW)
   set(OMC_MAKE_EXE "mingw32-make")
 else()
-  set(OMC_MAKE_EXE "make")
+  if(CMAKE_HOST_SYSTEM_NAME STREQUAL "FreeBSD")
+    set(OMC_MAKE_EXE "gmake")
+  else()
+    set(OMC_MAKE_EXE "make")
+  endif()
 endif()
 
 set(OMC_CMAKE_EXE "${CMAKE_COMMAND}")
