Mercurial > projects > qtd
comparison CMakeLists.txt @ 109:08135aa00cc9
CMake: ldc support option SINGLE_D_OBJECT now.
See http://www.dsource.org/projects/ldc/ticket/309.
author | SokoL_SD |
---|---|
date | Mon, 01 Jun 2009 07:15:52 +0000 |
parents | 8a4e85876ea8 |
children | 547cd31fa12a |
comparison
equal
deleted
inserted
replaced
108:9fa74f0e3fb6 | 109:08135aa00cc9 |
---|---|
73 set(CMAKE_INSTALL_PREFIX | 73 set(CMAKE_INSTALL_PREFIX |
74 ${dc_path} CACHE PATH "QtD install prefix" FORCE | 74 ${dc_path} CACHE PATH "QtD install prefix" FORCE |
75 ) | 75 ) |
76 endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OR "${CMAKE_INSTALL_PREFIX}" STREQUAL "") | 76 endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT OR "${CMAKE_INSTALL_PREFIX}" STREQUAL "") |
77 | 77 |
78 | 78 ## TODO: disable this option for ldc < rev. 1433. |
79 if(D_IS_MARS) | 79 if(D_IS_MARS) |
80 option(SINGLE_D_OBJECT "Build all d sources to one object file" "ON") | 80 option(SINGLE_D_OBJECT "Build all d sources to one object file" "ON") |
81 elseif(D_IS_LLVM) | 81 elseif(D_IS_LLVM) |
82 option(SINGLE_D_OBJECT "Build all d sources to one object file" "OFF") | 82 option(SINGLE_D_OBJECT "Build all d sources to one object file" "OFF") |
83 if(SINGLE_D_OBJECT) | 83 endif(D_IS_MARS) |
84 message(STATUS "LDC not support build multiple source files in one .obj file") | 84 |
85 set(SINGLE_D_OBJECT "OFF") | 85 if(SINGLE_D_OBJECT AND D_IS_LLVM) |
86 #set(D_FLAGS ${D_FLAGS} -singleobj) | 86 set(D_FLAGS ${D_FLAGS} -singleobj) |
87 endif(SINGLE_D_OBJECT) | 87 endif(SINGLE_D_OBJECT AND D_IS_LLVM) |
88 endif(D_IS_MARS) | |
89 | 88 |
90 # Check D compiler version | 89 # Check D compiler version |
91 if(D_VERSION EQUAL "1") | 90 if(D_VERSION EQUAL "1") |
92 if (D_FRONTEND LESS "041") | 91 if (D_FRONTEND LESS "041") |
93 message(STATUS "Minimum required version of D compiler is 1.041 (or compiler based on this version)") | 92 message(STATUS "Minimum required version of D compiler is 1.041 (or compiler based on this version)") |