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

Add custom target for the file generation #1388

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CowKeyMan
Copy link

The reason I want to propose this is so that users who just want a compilation database (I use Windows Subsystem for Linux/WSL so its useful for me) can then set the following in their own cmake project in the CMakeLists.txt:

option(CMAKE_EXPORT_COMPILE_COMMANDS ON)

And then run:

cd build
cmake ..
cmake --build . -t godotcpp_generated_files

The above just builds the generated files, and nothing else. No compilation of anything, so its very lightweight.

The reason I want to propose this is so that users who just want a compilation database (I use Windows Subsystem for Linux/WSL so its useful for me) can then set the following in their own project:

option(CMAKE_EXPORT_COMPILE_COMMANDS ON)

And then run:

cd build
cmake ..
cmake --build . -t godotcpp_generated_files

The above just builds the generated files, and nothing else. No compilation of anything, so its very lightweight.
@CowKeyMan CowKeyMan requested a review from a team as a code owner February 10, 2024 12:08
@dsnopek dsnopek added cmake topic:buildsystem Related to the buildsystem or CI setup labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake topic:buildsystem Related to the buildsystem or CI setup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants