Giter VIP home page Giter VIP logo

inbilla / cmake Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kitware/cmake

10.0 16.0 6.0 57.38 MB

CMake, the cross-platform, open-source build system.

Home Page: http://www.cmake.org

License: Other

Shell 0.54% CMake 19.19% Vim Script 0.04% Emacs Lisp 0.07% C 41.29% C++ 37.58% Fortran 0.02% HTML 0.66% Bison 0.32% Python 0.16% Perl 0.02% Assembly 0.07% Rebol 0.01% Java 0.02% TeX 0.01% Pascal 0.01% Lua 0.01% JavaScript 0.01% M 0.01% Objective-C++ 0.01%

cmake's Introduction

CMake

Introduction

CMake is a cross-platform, open-source build system generator. For full documentation visit the CMake Home Page and the CMake Documentation Page.

CMake is maintained and supported by Kitware and developed in collaboration with a productive community of contributors.

License

CMake is distributed under the OSI-approved BSD 3-clause License. See Copyright.txt for details.

Building CMake

Supported Platforms

MS Windows, Mac OS X, Linux, FreeBSD, Solaris, HP-UX, IRIX, BeOS, QNX

Other UNIX-like operating systems may work too out of the box, if not it should not be a major problem to port CMake to this platform. Subscribe and post to the CMake Users List to ask if others have had experience with the platform.

Building CMake from Scratch

UNIX/Mac OSX/MinGW/MSYS/Cygwin

You need to have a compiler and a make installed. Run the bootstrap script you find the in the source directory of CMake. You can use the --help option to see the supported options. You may use the --prefix=<install_prefix> option to specify a custom installation directory for CMake. You can run the bootstrap script from within the CMake source directory or any other build directory of your choice. Once this has finished successfully, run make and make install. In summary:

$ ./bootstrap && make && make install

Windows

You need to download and install a binary release of CMake in order to build CMake. You can get these releases from the CMake Download Page . Then proceed with the instructions below.

Building CMake with CMake

You can build CMake as any other project with a CMake-based build system: run the installed CMake on the sources of this CMake with your preferred options and generators. Then build it and install it. For instructions how to do this, see documentation on Running CMake.

Reporting Bugs

If you have found a bug:

  1. If you have a patch, please read the CONTRIBUTING.rst document.
  2. Otherwise, please join the the CMake Users List and ask about the expected and observed behaviors to determine if it is really a bug.
  3. Finally, if the issue is not resolved by the above steps, open an entry in the CMake Issue Tracker.

Contributing

See CONTRIBUTING.rst for instructions to contribute.

cmake's People

Contributors

berkgeveci avatar billhoffman avatar bradking avatar cryos avatar derdakon avatar dlrdave avatar drdanz avatar jamesbigler avatar krajaratnam avatar kwrobot avatar malaterre avatar mathstuf avatar miguelf avatar mikemcquaid avatar neundorf avatar ngladitz avatar nicolasdespres avatar paroga avatar pcc avatar pdl3 avatar seanm avatar sebastienbarre avatar steveire avatar syntheticpp avatar theerk avatar thewtex avatar urkud avatar wschroed avatar zachmullen avatar zackgalbreath avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cmake's Issues

Configure fails with VS2015 on path

Steps to reproduce:

  • Open a native compiler tool command prompt for VS2015
  • Ensure no other compilers are on path
  • Run cmake to configure a project

Stderr:

CMake Error at Y:/development/cmake-fastbuild-inbilla-install/share/cmake-3.2/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "D:/Program Files (x86)/Microsoft Visual Studio
  14.0/VC/bin/amd64/cl.exe" is not able to compile a simple test program.

  It fails with the following output:

   Change Dir: Y:/development/cmake-fastbuild-test/build-inbilla/CMakeFiles/CMakeTmp

  Run Build
  Command:"Y:/development/cmake-fastbuild-test/build-inbilla/FBuild.exe"
  "-showcmds" "-ide" "cmTC_d8f39-Debug"

  1> Error: opening file 'D:\Program Files (x86)\Microsoft Visual Studio
  14.0\VC\bin\amd64\c1ast.dll' in Compiler ToolManifest

  FBuild: Error: BUILD FAILED: cmTC_d8f39-Debug

  Time: 0.030s

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)

Implement VisualStudio vc10+ "ExtraGenerator" to build visual studio projects that run makefiles

Format the visual studio projects to contain files, and cmake files, then to most likely use "NMake" (with the build command configured to use 'fbuild').
NOTE: This is how the fastbuild vcxproject support works internally too. Alternatively, it may be possible to execute the "fbuild" command to generate the projects... assuming the "extra" generator is executed after the initial make file stuff has been generated.

Failed to generate all buildStep_PostBuild .bat file

cmake doesnt generate postbuild bat file except for Qt.
Ex:
.buildStep_PostBuild_Release = [ Using(.BaseConfig_Release) .PreBuildDependencies + { } Exec('INSTALL-PostBuild-Release1') { .ExecExecutable = 'C:/Windows/System32/cmd.exe' .ExecArguments = '/C INSTALL-PostBuild-Release1.bat' .ExecInput = { 'dummy-in' } .ExecUseStdOutAsOutput = true .ExecOutput = 'C:/Users/urza5/Documents/ISSofa/build/dummy-out-INSTALL-PostBuild-Release1.txt' } Alias('INSTALL-PostBuild-Release') { .Targets = { 'INSTALL-PostBuild-Release1' } } ]

INSTALL-PostBuild-Release1.bat doesn't exist

Configure fails with MinGW on path / GNU compilers chosen before cl.exe

Steps to reproduce:

  • Install MinGW
  • Add the MinGW binary directory to the path
  • Open a VS command prompt
  • Run cmake to configure a project

Stderr:

CMake Error at Y:/development/cmake-fastbuild-inbilla-install/share/cmake-3.2/Modules/Platform/Windows-GNU.cmake:141 (enable_language):
  No CMAKE_RC_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "RC" or the CMake cache entry CMAKE_RC_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.
Call Stack (most recent call first):
  Y:/development/cmake-fastbuild-inbilla-install/share/cmake-3.2/Modules/Platform/Windows-GNU-C.cmake:2 (__windows_compiler_gnu)
  Y:/development/cmake-fastbuild-inbilla-install/share/cmake-3.2/Modules/CMakeCInformation.cmake:56 (include)
  CMakeLists.txt:2 (project)

Changes to CMakeLists.txt are not detected

Steps to reproduce:

  • Create a CMake project
  • Configure using cmake (and FASTBuild generator)
  • Optional: Build project
  • Make changes to CMakeLists.txt and source files so that build fails if no reconfigure occurs
  • Build project

Result:

Build fails, as fbuild.bff is not updated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.