--- OMCompiler/Compiler/runtime/CMakeLists.txt.orig	2022-12-11 22:46:50 UTC
+++ OMCompiler/Compiler/runtime/CMakeLists.txt
@@ -242,7 +242,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}")
