Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build not generating Makefile #440

Closed
satwik-krit opened this issue Jan 11, 2025 · 2 comments
Closed

CMake build not generating Makefile #440

satwik-krit opened this issue Jan 11, 2025 · 2 comments
Labels

Comments

@satwik-krit
Copy link

I followed BUILDING.md to build the project using cmake. I followed the steps by running cmake .. from the build folder. However, it did not generate any Makefile and caused make to fail. This is my first time using cmake and am not sure what is wrong. Help?
Output of cmake ..:
(The folder path in the output has been substituted)

-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.26100.
-- The C compiler identification is MSVC 19.42.34435.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done (5.2s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/path/to/cglm/build```
@recp
Copy link
Owner

recp commented Jan 18, 2025

Hi @satwik-krit,

Sorry for the delay,

Have you been able to build successfully? cglm can be used without build but BUILD must also works. I'm on macOS it works for me, will try to test on Windows asap.

@recp recp added the build label Jan 18, 2025
@satwik-krit
Copy link
Author

satwik-krit commented Jan 28, 2025

Yes, cmake was detecting the VS compiler and building project files for it. I changed it to gcc to generate the Makefile. Excellent library btw, looking build my own someday!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants