Try to make gdc work

This commit is contained in:
Jens K. Mueller 2010-12-09 23:08:33 +01:00
commit 6079bb6957
8 changed files with 31 additions and 10 deletions

View file

@ -1,4 +1,9 @@
# This project is a C library
PROJECT( lib_2 C )
ADD_DEFINITIONS( ${GLOBAL_C_DEFS} )
# TODO
# dirty fix
# we should make the CMAKE_D_COMPILER_ID work
IF("${CMAKE_BASE_NAME}" MATCHES "dmd")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32" )
ENDIF()
ADD_LIBRARY( lib_2 STATIC lib_2.c )