I'm looking at a build folder configured using CMake for building with ninja. Naturally, it has a build.ninja file and I can ninja tgt1 in that folder and build target tgt1. But - what I want to do is list all possible targets. How do I do that?
How do I list all available targets for a project configured for ninja?
1.1k views Asked by einpoklum At
1
There are 1 answers
Related Questions in CMAKE
- Build issue in my STM32-NUCLEO project using the Eclipse IDE
- CMake: "dereference" INCLUDE commands to create a single CMakeLists.txt
- Conda CMAKE CXX Compiler error while compiling Pytorch
- How to setup nist nbis in raspbian raspberry pi 4
- Compiling c++ code by VS Code is always blocked by clang-tidy error 'Error running 'clang-tidy'
- library X11_Xmu_LIB is not found
- Cannot build a basic project with curl on Mac (M2) for Raspberry Pi Pico
- How to install spdlog library?
- How to generate vulkan project so it is cross-platform? (Using CMake)
- If target A depends on B, are B's POST_BUILD commands guaranteed to be executed before A starting to build?
- i have installed qt version 6.0.3 and this error QMYSQL driver not loaded displaying again and again
- Configure CmakeLists.txt to avoid manually copying dlls
- Cmake is not building an executable
- How to use "wx_dpi_aware.manifest" of wxWidgets wxMSW with MinGW and CMake?
- Try to Install GLFW on Steam Deck
Related Questions in NINJA
- HTML Not Rendering and Displaying as Plain Text on Frontend with Ninja Forms in WordPress
- New to llvm - trying to make the files but getting collect2: fatal error
- Empty generated qrc files on Raspberry Pi
- Cmake try to find Ninja in a wrong environment of msys2
- ESP-IDF Compile error while Building CXX object file. ninja: build stopped: subcommand failed
- CMake and Ninja - Problems with dollar sign in custom command
- Compiling latex file which depends on several file with ninja build system
- Conditionally execute statements depending on build type in CMake
- acp: missing destination file in target file generation for ota generation using make dist
- A ninja failed related error occurs during the build of the OTA package
- Failed to build chromium, ValueError: path is on mount '\\\\tab_group_types.mojom-webui.js'
- Clang-16 compiler segmentation fault
- ninja -C out/Release-x64 skia modules errors, "" needed by "", missing
- WSL: Perl-Script executed from Ninja doesn't find file path even though it exists
- How to Force specific MSVC Version in Python Setuptools with Ninja?
Related Questions in BUILDCONFIGURATION
- How to successfully build a Microsoft.Dotnet.Wpf.sln repository downloaded from GitHub at your home PC?
- How can I tell (in a generator expression) which language a target is compiled as?
- Implementing Different Build Configurations in Compose Multiplatform for Android and iOS
- Cannot specify link libraries for target which is not built by this project - but I really want to
- How can I get CMake to "forget" about a target?
- How do I list all available targets for a project configured for ninja?
- Is it safe to set WINDOWS_EXPORT_ALL_SYMBOLS for all platforms/compilers?
- What is .NET target platform in Visual Studio
- What should I link against: The actual CUDA driver library or the driver library stub?
- Use another version of C++ in Premake
- MSB0001: Internal MSBuild Error: MSB0001: Internal MSBuild Error: Request 0 refers to configuration xx
- Executable with many sources in subdirectories - should they be collected into libraries?
- In CMake, can I mark a library as static after add_library'ing it?
- Is the output location of CMake's add_custom_command different on Windows and Linux?
- How can I check in CMake whether my system is POSIX-conformant?
Related Questions in BUILD-TARGET
- Cannot specify link libraries for target which is not built by this project - but I really want to
- How can I get CMake to "forget" about a target?
- How do I list all available targets for a project configured for ninja?
- How can I determine which CMake targets were added by a command?
- Show which files will be rebuilt when building a target in a cmake project
- Show which build targets will be rebuilt if a specific file is updated
- How to check asset bundle's target platform?
- How to Use Build Targets In Xcode
- How can I propagate CXX_STANDARD and related properties to dependent targets?
- When attempting to run React-Native app on ios device, why are all RCT... references "undefined symbol" errors?
- cmake project build only one specific executable (and its dependencies)
- Tup with named targets
- How to solve import org.apache.http.util cannot be resolved?
- Attach Header File To Target On Xcode
- Xcode 6.4: OS X and iOS Targets, Cordova
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Listing the available targets is in ninja-speak, a "tool" in ninja's arsenal. So, just execute:
you may want to filter out some of those, since the "targets" here are not the same as your CMake targets. You'll see a lot of what you might call intermediate targets, some auxiliary targets CMake has on the side, as well as "phony" targets if you remember those from the days of yore (=GNU Make). The format is:
e.g.
with the former being an auxiliary CMake target rather than relating to any file/target name you've chosen.