Skip to content

Dadoum/cmake-d

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

cmake-d

CMake for D2 improved

Usage

  1. Download and extract https://github.com/dcarp/cmake-d/archive/master.zip to a local directory <local-dir> (you can use a git submodule if you want)
  2. Create a D CMake Project: project(project-name D)
  3. Run cmake as usual specifing the cmake-d path. To cache it, don't forget to specify the :PATH variable type.
cmake -DCMAKE_MODULE_PATH:PATH=<local-dir>/cmake-d <path-to-source>

Tip: you can add before declaring the project set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake-d/cmake-d) (the path to the folder with all cmake files) in order to use the normal CMake command.

Known issues

This project is just a set of CMake files. It cannot do as much as a CMake binary patch. By example, regeneration of file acording a dependency file is hard coded in the Makefile backend; so when you edit a file and rebuild with this backend, it will build only the file you edited, leading to some deeper issues.

Workaround: use Ninja backend.

About

cmake for D2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CMake 60.6%
  • D 38.1%
  • Shell 1.2%
  • C 0.1%