![]() ![]() Or, simply accumulate them in a global property or an internal cache variable alongside each call to include_directories. The INCLUDEDIRECTORIES is a directory property, and applies to all targets defined in that directory. If you get to that point, you may consider overriding the include_directories command with your own function or macro and track the values passed to it yourself. Those commands operate on the directory level. For example, the version variable in the nodejs module contains the current version. Forget the commands addcompileoptions, includedirectories, linkdirectories, linklibraries. If your find_package and include_directories commands are scattered about throughout many subdirectories, this becomes a challenging issue. Is it possible to specify an include directory when running cmake. export STARSHIPCONFIG/example/non/default/path/starship.toml. ) Add the given directories to those the compiler uses to search for include files. ![]() Relative paths are interpreted as relative to thecurrent source directory. They enable conditional linking, conditional definitions used when compiling, conditional include directories, and more. includedirectories (AFTERBEFORE SYSTEM dir1 dir2. Add the given directories to those the compiler uses to search forinclude files. The value of this directory property only tracks the include_directories commands that have occurred previously in the same CMakeLists file, or that have been inherited from previous occurrences in a parent CMakeLists file. includedirectories(AFTERBEFORESYSTEMdir1dir2. Something like this: get_property(dirs DIRECTORY $ PROPERTY INCLUDE_DIRECTORIES) You can use the get_property command to retrieve the value of the directory property
0 Comments
Leave a Reply. |