Search 5,000,000+ questions and answers.

Frequently Asked Questions

edit] What is CMake?

CMake FAQ - KitwarePublic
CMake is a cross-platform, open-source make system. CMake is used to control the software compilation process using simple platform-independent and compiler-independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated: it is possible to support complex environments requiring system configuration, preprocessor generation, code generation, and template instantiation.
Related Questions

edit] Can I do "make uninstall" with CMake?

CMake FAQ - KitwarePublic
By default, CMake does not provide the "make uninstall" target, so you cannot do this. We do not want "make uninstall" to remove useful files from the system. If you want an "uninstall" target in your project, then nobody prevents you from providing one. You need to delete the files listed in install_manifest.txt file. Here is how to do it. First create file cmake_uninstall.cmake.in in the top-level directory of the project: IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.
Related Questions

edit] I want a new feature in CMake. What should I do?

CMake FAQ - KitwarePublic
Please make sure to look at the old feature requests not to include duplicates, include detailed instructions of the feature and proposed implementation.
Related Questions

edit] Which regular expressions are supported by CMake?

CMake FAQ - KitwarePublic
When using MATCHES or MATCHALL in an IF command, or using any of the STRING(REGEX ...) commands, CMake expects regular expressions, not globs (wild cards). CMake uses the same regular expression engine above all platforms. Here are the meanings of the metacharacters: ^ Matches at beginning of a line $ Matches at end of a line .
Related Questions

edit] What is the most recent version covered by the Mastering CMake book?

CMake FAQ - KitwarePublic
The Mastering CMake version 2.2 book thoroughly covers CMake 2.2.3 and earlier. Since the printing of the book CMake 2.4 has been released but the book is by no means out of date. Updated FIND_PATH, FIND_PROGRAM, and FIND_FILE commands to be more powerful (cmake --help-command FIND_PATH)
Related Questions

edit] I set a cmake variable in my environment, but it didn't change anything. Why?

CMake FAQ - KitwarePublic
CMake build settings are stored in the CMake cache corresponding to a project's build tree. They are called CMake "cache entries" and have no relation to your command shell's environment variables. Use a CMake GUI (CMakeSetup on Windows or ccmake on UNIX) or the wizard mode (cmake -i) to edit cache entries. Initial values may also be specified for a build by using the -D command line argument to cmake when it is first run to produce a new build tree.
Related Questions

edit] I change CMAKE_C_COMPILER in the GUI but it changes back on the next configure step. Why?

CMake FAQ - KitwarePublic
Once a build tree is created with a given compiler it cannot be changed. There are a variety of implementation reasons for this policy. In order to choose a different compiler create a new build tree and set the CC and CXX environment variables to the compiler you want before running CMake.
Related Questions

edit] I run an out-of-source build but CMake generates in-source anyway. Why?

CMake FAQ - KitwarePublic
This means that there is a CMakeCache.txt file in the source tree, possibly as part of an existing in-source build. If CMake is given the path to a directory with a CMakeCache.txt file, it assumes the directory is a build tree. Therefore if one runs "cmake ../mysrc" to build out-of-source but there is a mysrc/CMakeCache.txt file then cmake will treat mysrc as the build tree. This is a side-effect of the feature that allows "cmake ." to be used to regenerate a build tree.
Related Questions

edit] Why does CMake use full paths, or can I copy my build tree?

CMake FAQ - KitwarePublic
configured header files may have full paths in them, and moving those files without re-configuring would cause upredictable behavior. because cmake supports out of source builds, if custom commands used relative paths to the source tree, they would not work when they are run in the build tree because the current directory would be incorrect. on Unix systems rpaths might be built into executables so they can find shared libraries at run time.
Related Questions

edit] CMake does not generate a "make distclean" target. Why?

CMake FAQ - KitwarePublic
Some build trees created with GNU autotools have a "make distclean" target that cleans the build and also removes Makefiles and other parts of the generated build system. CMake does not generate a "make distclean" target because CMakeLists.txt files can run scripts and arbitrary commands; CMake has no way of tracking exactly which files are generated as part of running CMake. Providing a distclean target would give users the false impression that it would work as expected.
Related Questions

edit] Why are my CMake variables not updated in the GUI after a SET command?

CMake FAQ - KitwarePublic
The cache variables listed in the GUI when you press "Configure" are used to initialize the values seen by the code in CMakeLists.txt files. Changes made by the code are used during the configure step and seen by the generators but are not stored back into the cache. For example: SET(BUILD_SHARED_LIBS ON) will turn on building of shared libraries for the directory containing the command and all subdirectories, but the change will not appear in the GUI.
Related Questions

edit] How do I use CMake to generate SWIG wrapper libraries?

CMake FAQ - KitwarePublic
CMake version 2 includes a module that supports the generation of SWIG wrapper libraries. The SWIG package defines the following macros: SWIG_ADD_MODULE and SWIG_LINK_LIBRARIES.
Related Questions

edit] How do I use CMake to build LaTeX documents?

CMake FAQ - KitwarePublic
Use the following approach. Note that you have to set LATEX_COMPILE to LaTeX executable, DVIPDF_COMPILE to dvi to pdf converter. Also, the LaTeX source is TDocument.tex and the result is called TDocument.pdf. Note that this uses commands in CMake version 1.8 or later. PROJECT(Document) IF(LATEX_COMPILE) ADD_CUSTOM_COMMAND( OUTPUT ${Document_BINARY_DIR}/TDocument.dvi DEPENDS ${Document_BINARY_DIR}/TDocument.tex COMMAND ${LATEX_COMPILE} ARGS ${Document_SOURCE_DIR}/TDocument.
Related Questions

edit] Can CMake set the Debugging/Working Directory property in Visual Studio projects?

CMake FAQ - KitwarePublic
No. The value of this property is not stored in the project files. It is stored in extra files created by the IDE when a solution is loaded (VS .NET 2003 uses a hidden .suo file next to the .sln solution file). The format of these files is not known to CMake and cannot be generated. In some versions of VS the files are binary and not human readable. The path to the SDK libs (user32.
Related Questions

edit] How do I edit error messages?

MediaWiki FAQ - Meta
Special:Allmessages contains a complete list of messages (error or otherwise), that can be edited. Alternatively, you could also view and edit your languages/Language.php file, which also contains some messages.
Related Questions

How do I edit My Profile?

Frequently Asked Questions | OurStage.com
To edit anything in your profile, just click on the "Edit This Page" button at the top of the center block. You can also directly edit your account information or the About Me block from links directly on those blocks without pushing this button. If you do push the button in the top right, several tools will become available that look like this: From left to right, they are the privacy menu, the pencil tool, the trash can tool, and then the positioning arrows.
Related Questions

Can I edit my skin after I have made it?

Free Instant Messaging Services | Instant Messenger Program
No, once your skin has been posted on the skins network you cannot edit it. You can, however, hide your skin so no one else can download it from the skins network. See Hide/Unhide This Skin (above) for details
Related Questions

How do I edit a page?

Manual:FAQ - MediaWiki
To edit a page, simply click the edit link that appears on each page. Using the default MonoBook skin, this is in the form of a tab at the top of the page. A form will appear, containing the existing markup. When you have finished making modifications, click the Save button to commit your changes.
Related Questions

edit] What is Inkscape?

FAQ - Inkscape Wiki
Inkscape is an open-source vector graphics editor similar to Adobe Illustrator, Corel Draw, Freehand, or Xara X. What sets Inkscape apart is its use of Scalable Vector Graphics (SVG), an open XML-based W3C standard, as the native format.
Related Questions

How do I edit my order?

Lids - FAQ's
You can edit your order as long as your order hasn't already entered the shipping process by calling the Customer Care Department at 1-888-564-HATS(4287) 24 hours a day, 7 days a week.
Related Questions

Can I edit my listing?

Frequently asked questions - HomeAroundTheWorld.com
Yes. Use your membership number and password to access your listing, make any changes, including your location and contact information, and your listing will be updated automatically. If you move home and wish to continue to use our service, simply edit your listing, altering the address fields on the form and your listing will automatically slot into its new location. So do we.
Related Questions

How do you edit?

Bloglines | Forums :: FAQ :: Frequently Asked Questions
Home | About | Help | Languages | Services | Privacy Policy | Terms of Service | Contact Us | We're Hiring!
Related Questions

edit] How about other planets?

World Wind FAQ - World Wind Wiki
There are several worlds available in World Wind. The Earth, Moon, Mars, Venus and Jupiter are included and more can be added through add-ons. edit] I would love to see a feature that showed day/night in realtime say taken from the USNO atomic clock. Perhaps a setting where you could follow the terminator and such.
Related Questions

How do I edit my business?

Frequently Asked Questions - AgMap
Go to the "Your Account" page, click "View or edit your businesses", and select the "edit this business" option under the business you'd like to edit. This will take you through the same steps you used when you first added your business. Be sure to click the "next" button at the bottom of each page to save your information and continue to the next step.
Related Questions

How can I edit a list?

FREELANG Dictionary - FAQ (Frequently Asked Questions)
Just click on a word, modify it and hit Enter key to validate. For more information about editing, adding or deleting entries, please refer to the Help file of the program (Help menu or F1 key). Please note that the dictionary uses only one list (foreign language to English). The other list is a mirror of the first one, it is created when the dictionary is being installed. This is important to know, because it means that contributors only have to work on one list, not two.
Related Questions

How can I edit my video?

Frequently Asked Questions - Associated Content
You can get fancy and use one of the high-end video editing products like Final Cut Pro for the Mac or Adobe Premiere Pro 2.0 for the PC, but those take a long time to learn. If you're on a PC and looking for a simpler option, try Windows MovieMaker. This free download is easy to use and has some good tools for importing and exporting your video. If you're on a Mac, try iMovie for editing your clip. iMovie has a lot of cool features and is very powerful and easy to use.
Related Questions

Can I edit my content?

Frequently Asked Questions - Associated Content
If the status of your submission is "submitted" you can edit it by clicking on the to the left of the title from the My Content sub-tab (accessible from the My Account tab). Make any changes and be sure to click "Save & Next." If we have sent you an offer, you can make changes by choosing "I Will Edit & Resubmit" from the drop-down response menu. Once you have accepted an offer or your content is published you need to contact us to make any changes.
Related Questions

Got A Question? Ask Our Community!


More Questions >>

© Copyright 2007-2008 QueryCAT
About • Webmasters • Contact