hadim
Joined: 25 Oct 2010 Posts: 1
|
Posted: Mon Oct 25, 2010 8:11 am Post subject: Ldc support on CMakeD |
|
|
Hi,
We are trying to use cmaked to compile a D project
(http://gitorious.org/dscience/dscience) and we would like to compile our
project with ldc. cmaked doesnt seem to support it.
We tried to add this support by modifying cmaked files but we didnt
success. We dont know how to set the variable CMAKE_COMPILER_IS_LDC
and SET(CMAKE_COMPILER_IS_GDC @CMAKE_COMPILER_IS_GDC@) seem obscurs for us.
We tried to write a Linux-ldl.cmake file too (below the post).
Did you plan to add ldc support shortly ? If you didnt, can you guide
us to add this support ?
Best regards,
Code: | IF(CMAKE_D_USE_TANGO)
SET(DSTDLIB_FLAGS "-version=Tango")
ENDIF(CMAKE_D_USE_TANGO)
IF(CMAKE_D_USE_PHOBOS)
SET(DSTDLIB_FLAGS "-version=Phobos")
ENDIF(CMAKE_D_USE_PHOBOS)
IF(CMAKE_D_BUILD_DOCS)
SET(DDOC_FLAGS "-D -Dd=documentation")
FOREACH(item ${CMAKE_D_DDOC_FILES})
SET(DDOC_FLAGS "${DDOC_FLAGS} -Df=${item}")
ENDFOREACH(item)
ENDIF(CMAKE_D_BUILD_DOCS)
SET (CMAKE_D_FLAGS_INIT "-version=Posix -version=${CMAKE_BUILD_TYPE}Build ${DSTDLIB_FLAGS}")
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-O1cat /h ${DDOC_FLAGS}")
SET (CMAKE_D_FLAGS_RELEASE_INIT "-release -w -O2 ${DDOC_FLAGS}")
SET (CMAKE_D_FLAGS_RELWITHDEBINFO_INIT "-O2 -g ${DDOC_FLAGS}")
# SET (CMAKE_D_CREATE_PREPROCESSED_SOURCE "<CMAKE_D_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
SET (CMAKE_D_CREATE_ASSEMBLY_SOURCE "<CMAKE_D_COMPILER> <FLAGS> <SOURCE>")
#SET (CMAKE_INCLUDE_SYSTEM_FLAG_D "-I ") |
|
|