QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked 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.

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. See similar 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. See similar 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. See similar 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 . See similar 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) See similar 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. See similar 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. See similar 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. See similar 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. See similar 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. See similar 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. See similar 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. See similar questions...

How to uninstall it from my computer?

CD to MP3 Ripper FAQ - Frequently Asked Questions
Click the item "Add/Remove Programs", then select "CD to MP3 Ripper" from the list and click the "Remove" button to uninstall it. See similar questions...

edit] How do I make a user a Sysop?

MediaWiki FAQ - Meta
Goto: Special:Userrights and enter the username. Click on "sysop" from the "Available groups" list. Only a user with "Bureaucrat" rights may make a user sysop. See similar 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. See similar questions...

edit] MediaWiki is slow, how can I make it faster?

MediaWiki FAQ - Meta
First you should try a PHP cache engine such as eAccelerator or APC. It will save the parsed PHP scripts and enhance performance a lot (this is something you should use anyway on any PHP installation with non-trivial traffic). Zend Platform also contains a bytecode cache, however its "dynamic content caching" is not supported in MediaWiki at the current time. Memcached will provide some performance benefit, especially for heavily viewed sites. See similar questions...

edit] How do I make my base URLs shorter?

MediaWiki FAQ - Meta
See eliminating index.php from the url for details. You may need access to server files like httpd.conf. See similar questions...

edit] How do I make it so that only logged-in users can see the toolbox?

MediaWiki FAQ - Meta
Look at this page: Customization#How_do_I_remove_the_toolbox_for_users_that_are_not_logged_in.3F --RaZorEdge qc 03:38, 4 February 2006 (UTC) See similar questions...

Can I edit or make changes to content once it's submitted?

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. See similar questions...

Explore Other Topics

How can a Non Resident Indian Account be opened by an NRI?
Are there foods I cannot eat while I have braces?
How much should I feed my Yorkie?
What's the difference between Google Maps, Windows Live Local and Yahoo Maps?
Can you help me to start a tilapia farm?
Is it okay to eat ducks, geese and other wild birds?
What kind of paint, stain, and varnish should I use?
What is the pinout of the J201?
What is the difference between a modem and a router?
Why are fire hydrants painted different colors ?
How do I get the Certificate after graduation?
How long does a 20 lb. Cylinder of propane last?
How do I apply for the Canada Pension Plan retirement pension or other benefits under the plan?
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact