8000 GitHub - kassane/cmake-d: cmake for D2
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from dcarp/cmake-d

cmake for D2

License

Notifications You must be signed in to change notification settings

kassane/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

Languages

  • CMake 60.9%
  • D 36.4%
  • PowerShell 1.5%
  • Shell 1.1%
  • C 0.1%
0