edit] I change CMAKE_C_COMPILER in the GUI but it changes back on the next configure step. Why?
CMake FAQ - KitwarePublicOnce 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 Questionsedit] Why are my CMake variables not updated in the GUI after a SET command?
CMake FAQ - KitwarePublicThe 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 Questionsedit] What is CMake?
CMake FAQ - KitwarePublicCMake 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 Questionsedit] I set a cmake variable in my environment, but it didn't change anything. Why?
CMake FAQ - KitwarePublicCMake 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 Questionsedit] How can I change what the <title> of each page is? Where do I make changes?
MediaWiki FAQ - MetaIn order to change titles, texts, announcements and the like, go to Special:Allmessages, where you will see the text associated with the pages you wish to change. (As far as I can tell, you need to log in as an administrator (like the one you made when you installed) to edit the protected entries in the MediaWiki namespace.) If you want to change the title in your browser, you need to edit MediaWiki:pagetitle. Go there and edit it just like you would any other page in your Wiki.
Related Questionsedit] Can I do "make uninstall" with CMake?
CMake FAQ - KitwarePublicBy 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 QuestionsIs C++ a superset of C? Can I use a C++ compiler to compile C code?
Infrequently Asked Questions in comp.lang.cC++ is a superset of something, we're not sure what. You can use a C++ compiler to compile C code, but the results may surprise you.
Related Questionsedit] How can I change the default build mode and see it reflected in the GUI?
CMake FAQ - KitwarePublicAdapt the following commands in your CMakeList.txt (this example sets the Release With Debug Information mode): IF(NOT CMAKE_BUILD_TYPE) SET(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE) ENDIF(NOT CMAKE_BUILD_TYPE)
Related Questionsedit] I want a new feature in CMake. What should I do?
CMake FAQ - KitwarePublicPlease make sure to look at the old feature requests not to include duplicates, include detailed instructions of the feature and proposed implementation.
Related Questionsedit] Which regular expressions are supported by CMake?
CMake FAQ - KitwarePublicWhen 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 QuestionsWhere is the C compiler or where can I get one?
Solaris 2 FAQWhere have you been? :-) Sun has dropped their old K&R C compiler, supposedly to create a market for multiple compiler suppliers to provide better performance and features. Here are some of the contenders: SunPro, SMCC, and various distributors sell a new ANSI-standard C compiler on the unbundled (extra cost) SPARCcompiler/SPARCworks CD-ROM. There are some other nice tools there too, like a "make tool" and a visual diff (interactive diff).
Related QuestionsPeople keep telling me that getch() is not standard, but my C compiler has it. Are they wrong?
Infrequently Asked Questions in comp.lang.cThey've been programming more than ten years. You haven't. Draw your own conclusions. That's right! They hadn't noticed it. No doubt their compilers have it too, and its behavior is identical everywhere else in the world, also. That would explain everything.
Related QuestionsHow do I change the compiler settings?
Inform 6 FAQ: Preparing to programWhen you run the Inform compiler, you have as a minimum to tell it the name of the source file containing your game. For example, assuming that Inform represents the compiler program, and that your current folder/directory contains an error-free source file myGame.inf as well as all of the library files, then on a PC this command should be sufficient to create a Z-Machine game myGame.z5: Inform myGame Often, you need to provide additional information to the compiler.
Related Questionsbut the compiler gave me error messages. Can't a structure in C contain a pointer to itself?
Infrequently Asked Questions in comp.lang.cNot exactly; it can contain a pointer to another structure of the same type. Try: typedef struct { char *item; double *next; } NODEFAKE; typedef struct { char *item; NODEFAKE *next; } NODEPTR;
Related QuestionsI'm using C++ but would prefer to use a different compiler than the one on CEC. Is this possible?
CS 241 Frequently Asked Questions (FAQs)Sure. However, you will be responsible for making any needed modifications to the provided code. The provided IntervalTimer will not work on other platforms since it makes calls into the Unix operating system. You can replace this by whatever system utility you have to get the time. Then by getting the time before and after the algorithm runs you can take their difference to determine the elapsed time. Just be sure that your procedure is the only process running.
Related QuestionsCan you support my C compiler XXX?
FFmpeg FAQIt depends. If your compiler is C99-compliant, then patches to support it are likely to be welcome if they do not pollute the source code with #ifdefs related to the compiler. Visual C++ is not compliant to the C standard and does not support the inline assembly used in FFmpeg. If you wish - for whatever weird reason - to use Visual C++ for your project then you can link the Visual C++ code with libav* as long as you compile the latter with a working C compiler.
Related QuestionsWhat C++ compiler is required?
OpenEye Scientific Software | FAQOEChem distributions are generally labelled clearly to indicate the corresponding compiler and version. Additional compiler support information can be found at the OpenEye Platform Support document, in the accompanying technical notes.
Related QuestionsIs Micro-C a full ANSI compiler?
FAQsMICRO-C is a "near ANSI" subset compiler. It does however, support more of the 'C' language than most other subset compilers, including: Micro-C has a long history, and began life as a K&R only compiler. It has evolved toward ANSI quite a bit, and continues to do so, however it is NOT a fully ANSI compliant compiler, and most likely never will be..
Related QuestionsWhere can I find a C-to-Forth compiler?
comp.lang.forth Frequently Asked Questions (1/6): General/Mi...We, ( CodeGen, Inc.) sell a C-to-Fcode compiler. Well, it actually generates IEEE-1275 Forth that then must be run through a tokenizer. Really, it generates pretty ugly Forth code. It's easy to generate lousy Forth, but it's very difficult to generate nice clean optimized Forth. C and stack-based languages don't mix too well. I end up faking a C variable stack-frame using a Forth $frame variable for local vars. MPE has produced a C to stack-machine compiler.
Related QuestionsHow do I get the Cygwin C++ compiler for Windows?
FAQThe easiest way is to buy the distribution CD from the IEEE Student Branch ($5 for IEEE members, $10 for non). It contains the Cygwin (GNU) C++ compiler, the Insight debugger, the "Teaching Machine" and instructional videos. If you have a fast internet connection and don't want the videos etc., you can go to Cygwin's site and click on the "Install Now!" icon. Be sure to install at least the following packages:
Related QuestionsI already have C++ compiler x, can I use it?
FAQYes, but you should compile and run your test cases using the Cygwin/GNU compiler (g++) in the lab before you submit your assignments. If it works there, then it's ok. (Of course we may find test cases for which your program doesn't work on any compiler.) where files is a list of one or more files that the compiler is to compile, and options is one or more of the following. (There are others, these are just the most relevant ones.) Give all warnings.
Related QuestionsCan I compile Octave with another C++ compiler?
Frequently asked questions about Octave (with answers)I'm looking for new questions (with answers), better answers, or both. Please send suggestions to bug-octave@bevo.che.wisc.edu. If you have general questions about Octave, or need help for something that is not covered by the Octave manual or the FAQ, please use the help-octave@bevo.che.wisc.edu mailing list. This FAQ is intended to supplement, not replace, the Octave manual.
Related QuestionsWhere can I get a free C++ compiler?
FAQ - CPPThis is most likely due to attempting to build a console program as a GUI application. If you intended to create a console app, make a new project with the console wizard.
Related Questionsedit] What is bioperl-gui?
FAQ - BioPerlThe GUI package provides a Graphical User Interface for interacting with sequence and feature objects. It is used as part of the Genquire project.
Related Questionsedit] What is the most recent version covered by the Mastering CMake book?
CMake FAQ - KitwarePublicThe 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 Questionsedit] I run an out-of-source build but CMake generates in-source anyway. Why?
CMake FAQ - KitwarePublicThis 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 Questionsedit] Why does CMake use full paths, or can I copy my build tree?
CMake FAQ - KitwarePublicconfigured 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