Looking for help with cmake

I have a cmake build script that works on Linux. I’m trying to get the script to also build on Windows, but haven’t been able to get cmake to find lua. I have cygwin installed, and CLion adds /cygdrive to the paths.

I setup and environment variable LUA_DIR that points to C:\Program Files\lua\5.3. Earlier today cmake was able to find the version number, and the path for LUA_INCLUDE_DIR, but couldn’t find LUA_LIBRARY. (I have a lib directory in the LUA_DIR path, with all the libs) Now, it’s not able to find anything.

Anyone able to help out?

mmm...cmake

If you've installed lua and cmake for windows then try running them directly from cmd. Cygwin overrides environment variables with Unix-style paths and that can brake both lua and cmake.
Then run $ ccmake and check if your cached paths are alright. Clean the cache if they're not.

Anything you run under Cygwin, that hasn't been installed using the cygwin installer, will probably not function properly.

Thanks, ended up finding the binaries. The istructions I had found used iregular names for the lua libs.