FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ldc support on CMakeD

 
Post new topic   Reply to topic     Forum Index -> CMakeD
View previous topic :: View next topic  
Author Message
hadim



Joined: 25 Oct 2010
Posts: 1

PostPosted: Mon Oct 25, 2010 8:11 am    Post subject: Ldc support on CMakeD Reply with quote

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 ")
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> CMakeD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group