@ -98,6 +98,14 @@ option(STATIC "Link libraries statically" ${DEFAULT_STATIC})
if ( MINGW )
if ( MINGW )
get_filename_component ( msys2_install_path "[HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MSYS2 64bit;InstallLocation]" ABSOLUTE )
get_filename_component ( msys2_install_path "[HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\MSYS2 64bit;InstallLocation]" ABSOLUTE )
set ( CMAKE_INCLUDE_PATH "${msys2_install_path}/mingw64/include" )
set ( CMAKE_INCLUDE_PATH "${msys2_install_path}/mingw64/include" )
# T h i s i s n e c e s s a r y b e c a u s e o t h e r w i s e C M a k e w i l l m a k e B o o s t l i b r a r i e s - l f o o
# r a t h e r t h a n a f u l l p a t h . U n f o r t u n a t e l y , t h i s m a k e s t h e s h a r e d l i b r a r i e s g e t
# l i n k e d d u e t o a b u g i n C M a k e w h i c h m i s s e s p u t t i n g - s t a t i c f l a g s a r o u n d t h e
# - l f o o a r g u m e n t s .
list ( REMOVE_ITEM CMAKE_C_IMPLICIT_LINK_DIRECTORIES
" $ { m s y s 2 _ i n s t a l l _ p a t h } / m i n g w 6 4 / l i b " )
list ( REMOVE_ITEM CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES
" $ { m s y s 2 _ i n s t a l l _ p a t h } / m i n g w 6 4 / l i b " )
endif ( )
endif ( )
if ( STATIC )
if ( STATIC )