SanjeetBalamurugan / cmake_premake

A cmake converter for premake. Convert cmake projects to premake
GNU General Public License v3.0
7 stars 0 forks source link

Getting "not implemented" when running translate-cmake #3

Open liampace opened 1 month ago

liampace commented 1 month ago

I have a project where this repository and a CMake project (ex: glfw) are submodules in my repo. When trying to run the action 'translate-cmake' on this bare bones script:

local cmake_premake = require("vendor/cmake_premake")
workspace "Workspace"
    configurations {"Debug", "Release"}
    architecture "x86_64"
    cmake_premake.include_proj("vendor/glfw", "glfw")

I get the following console output

Running action 'translate-cmake'...
Starting translate-cmake
not implemented

File structure

repo_folder
|_____premake5.lua
|_____vendor
|_____|_____cmake-premake
|_____|_____glfw
liampace commented 1 month ago

UPDATE: Upon further inspection it seems that the error is coming from utils/path.lua

function path.to_windows_path(self, is_absolute)
  print("not implemented")
  local os = require("os")
  os.exit(22)
end

Is windows currently unsupported? If so the documentation should be changed to reflect that.

SanjeetBalamurugan commented 1 month ago

Is windows currently unsupported? Yes, I will add support for windows in future.