@ -197,16 +197,23 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
# S i n c e v e r s i o n 2 . 8 . 5 , C m a k e u s e s a r e s p o n s e file ( .rsp ) t o
# p a s s t h e l i s t o f i n c l u d e p a t h s t o g c c
# u n f o r t u n a t e l y , u n d e r m i n g w 3 2 + m s y s , a t l e a s t w i t h g c c 4 . 8 a n d p r e v i o u s ,
# t h i s f i l e i s n o t e x p a n d e d a n d i n c l u d e p a t h s d e f i n e d i n t h i s f i l e a r e n o t t a k e n i n a c c o u n t
# t h i s i s t h e c a s e o f w x W i d g e t s i n c l u d e s
# D i s a b l e t h i s r e s p o n s e f i l e f o r includes ( See Windows-GNU.cmake module )
if ( WIN32 AND MSYS AND NOT CMAKE_CROSSCOMPILING )
# f i x m e : i t i s n e e d e d o n l y w i t h M S Y S + M I N G W 3 2 ? o r a l w a y s u n d e r MINGW
if ( ${ CMAKE_SIZEOF_VOID_P } MATCHES 4 )
set ( CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES 0 )
# t h i s f i l e i s n o t a l w a y s e x p a n d e d a n d i n t h i s c a s e i n c l u d e p a t h s d e f i n e d i n t h i s f i l e
# a r e n o t t a k e n i n account ( this is the case of wxWidgets includes )
# I f i t i s t h e c a s e , d i s a b l e t h i s r e s p o n s e f i l e f o r includes ( See Windows-GNU.cmake module )
if ( false ) # s e t t o t r u e t o d i s a b l e t h e i n c l u d e r e s p o n s e f i l e
if ( WIN32 AND MSYS AND NOT CMAKE_CROSSCOMPILING )
# f i x m e : i t i s n e e d e d o n l y w i t h M S Y S + M I N G W 3 2 ? o r a l w a y s u n d e r MINGW
if ( ${ CMAKE_SIZEOF_VOID_P } MATCHES 4 )
set ( CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES 0 )
endif ( )
endif ( )
endif ( )
# f o r s o m e r e a s o n s , c m a k e d o e s d o u s e a l w a y s a r e s p o n s e f i l e t o s e n d t h e l i s t o f o b j e c t s
# t o t h e a r c h i v e r , a n d b e c a u s e t h i s l i s t c a n b e v e r y l o n g , a n d c a n c r e a t e i s s u e
# w h e n i t i s u s e d i n a c o m m a n d l i n e , f o r c e u s e o f a r e s p o n s e f i l e t o s t o r e i t
SET ( CMAKE_CXX_USE_RESPONSE_FILE_FOR_OBJECTS 1 )
# T h e M i n G W c o m p i l e r c a n u s e t h e m i c r o s o f t s y s t e m s n p r i n t f a s s t a n d a r d a n d i t h a s a b r o k e n
# A P I w i t h r e s p e c t t o t h e C 9 9 s t a n d a r d , s o m a k e s u r e w e f o r c e i t t o u s e i t s o w n c o m p l i a n t
# s n p r i n t f