Allow CMAKE_C_FLAGS to override -m32 in app_5 and lib_2
This commit is contained in:
parent
8197618f97
commit
b45cb56015
2 changed files with 2 additions and 2 deletions
|
@ -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 )
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue