![recompile with cmake recompile with cmake](https://user-images.githubusercontent.com/102313/80764268-2922f980-8af5-11ea-8b09-b9534d4a7bac.png)
To specify user’s own C and C++ compiler flags, the CMAKE_C_FLAGS and CMAKE_CXX_FLAGS To define which C and C++ compilers to use, the CC and CXX environment variables can be defined. On some systems, warnings may occur because of differences in system include files. If it is built outside the source tree, the build directory has to be removed and recreated before rerunning CMake.
Recompile with cmake windows#
Shell> rm CMakeCache.txt On Windows shell> devenv MySQL.sln /clean To prevent old object files or configuration information from being used by current installation, the following commands need to be run before re-running CMake − On Unix shell> make clean The old object files from previous builds can be removed first because since they would have been compiled using different configuration options. This assumption becomes wrong when the file is reconfigured.Įach time CMake is run, ‘make’ has to be executed again to recompile. When CMake begins, it looks for this file and reads the contents (if it exists), assuming that the information is correct. This information is present in CMakeCache.txt. If CMake is run right after it was previously run, there is a possibility that it would use information that was gathered from its previous call. Some problems with compiling MySQL could be because of not configuring properly.