Allow CMAKE_C_FLAGS to override -m32 in app_5 and lib_2

This commit is contained in:
Jens Mueller 2011-02-22 15:08:08 +01:00
parent 8197618f97
commit b45cb56015
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@
# 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" )
SET(CMAKE_C_FLAGS "-m32 ${CMAKE_C_FLAGS}" )
ENDIF()
ADD_EXECUTABLE ( app_5 app_5.d cfunc.c )
ADD_TEST( app_5 app_5 )

View file

@ -4,6 +4,6 @@ PROJECT( lib_2 C )
# 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" )
SET(CMAKE_C_FLAGS "-m32 ${CMAKE_C_FLAGS}" )
ENDIF()
ADD_LIBRARY( lib_2 STATIC lib_2.c )