Finally started working on project.

1) Removed "-version=Posix" (auto added by compiler now)
2) Added CMAKE_SOURCE_DIR to dmd import paths
3) Added flag "-version=Phobos/Tango" for dmd (no auto-adding)
This commit is contained in:
Volfram 2010-03-24 21:00:17 +00:00
parent 3bde74b0c7
commit ef051c12d0
3 changed files with 3 additions and 3 deletions

View file

@ -142,7 +142,7 @@ ELSE(CMAKE_COMPILER_IS_GDC)
SET(CMAKE_LIBRARY_PATH_FLAG "-L")
ENDIF(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
ENDIF(CMAKE_COMPILER_IS_GDC)
IF(CMAKE_D_USE_TANGO)
IF(CMAKE_COMPILER_IS_GDC)
SET(DSTDLIB_TYPE "-fversion=Tango")

View file

@ -8,7 +8,7 @@
#
# See Copyright.txt for details.
#
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT (cmaked NONE)
# note do not install FindGTK2.cmake. it is not required to install it

View file

@ -25,7 +25,7 @@ IF(CMAKE_D_BUILD_DOCS)
#ENDFOREACH(item)
ENDIF(CMAKE_D_BUILD_DOCS)
SET (CMAKE_D_FLAGS_INIT "-version=Posix -version=${CMAKE_BUILD_TYPE}Build ${DSTDLIB_FLAGS} -I$ENV{D_PATH}/include -I$ENV{D_PATH}/import")
SET (CMAKE_D_FLAGS_INIT "-version=${CMAKE_BUILD_TYPE}Build ${DSTDLIB_FLAGS} ${DSTDLIB_TYPE} -I$ENV{D_PATH}/include -I$ENV{D_PATH}/import -I${CMAKE_PROJECT_SOURCE_DIR}")
SET (CMAKE_D_FLAGS_DEBUG_INIT "-g ${DDOC_FLAGS}")
# SET (CMAKE_D_FLAGS_MINSIZEREL_INIT "-Os ${DDOC_FLAGS}")
SET (CMAKE_D_FLAGS_RELEASE_INIT "-O -release -inline ${DDOC_FLAGS}")