2 # CMakeD - CMake module for D Language
\r
4 # Copyright (c) 2007, Selman Ulug <selman.ulug@gmail.com>
\r
5 # Tim Burrell <tim.burrell@gmail.com>
\r
7 # All rights reserved.
\r
9 # See Copyright.txt for details.
\r
11 # Modified from CMake 2.6.5 CMakeCCompiler.cmake.in
\r
12 # See http://www.cmake.org/HTML/Copyright.html for details
\r
15 SET(CMAKE_D_COMPILER "@CMAKE_D_COMPILER@")
\r
16 SET(CMAKE_D_COMPILER_ARG1 "@CMAKE_D_COMPILER_ARG1@")
\r
17 SET(CMAKE_AR "@CMAKE_AR@")
\r
18 SET(CMAKE_RANLIB "@CMAKE_RANLIB@")
\r
19 SET(CMAKE_COMPILER_IS_GDC @CMAKE_COMPILER_IS_GDC@)
\r
20 SET(CMAKE_COMPILER_IS_DMD @CMAKE_COMPILER_IS_DMD@)
\r
21 SET(CMAKE_D_COMPILER_LOADED 1)
\r
22 SET(CMAKE_COMPILER_IS_MINGW @CMAKE_COMPILER_IS_MINGW@)
\r
23 SET(CMAKE_COMPILER_IS_CYGWIN @CMAKE_COMPILER_IS_CYGWIN@)
\r
24 IF(CMAKE_COMPILER_IS_CYGWIN)
\r
27 ENDIF(CMAKE_COMPILER_IS_CYGWIN)
\r
29 SET(CMAKE_D_COMPILER_ENV_VAR "DC")
\r
31 IF(CMAKE_COMPILER_IS_MINGW)
\r
33 ENDIF(CMAKE_COMPILER_IS_MINGW)
\r
34 SET(CMAKE_COMPILER_IS_GDC_RUN 1)
\r
35 SET(CMAKE_D_SOURCE_FILE_EXTENSIONS d)
\r
36 SET(CMAKE_D_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC)
\r
37 SET(CMAKE_D_LINKER_PREFERENCE None)
\r
39 SET(CMAKE_D_OUTPUT_EXTENSION .o)
\r
41 SET(CMAKE_D_OUTPUT_EXTENSION .obj)
\r
43 # save the size of void* in case where cache is removed
\r
44 # and the this file is still around
\r
45 #SET(CMAKE_SIZEOF_VOID_P @CMAKE_SIZEOF_VOID_P@)
\r