summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2016-10-13 08:17:53 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-13 14:16:46 (GMT)
commit2e242b5c1e6b24e4ed59692b9338e295b792f70e (patch)
treed6b4cf247e60caa1166940a8bb762ae911c00077 /Modules
parent6699d46a2a7f12d35926def3e4db3c7a0a5f7449 (diff)
downloadCMake-2e242b5c1e6b24e4ed59692b9338e295b792f70e.zip
CMake-2e242b5c1e6b24e4ed59692b9338e295b792f70e.tar.gz
CMake-2e242b5c1e6b24e4ed59692b9338e295b792f70e.tar.bz2
FindBoost: Use list(INSERT) to simplify suffix list generation
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 84ba061..fc68135 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -1390,7 +1390,7 @@ endif()
if( Boost_USE_STATIC_LIBS )
set( _boost_ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
if(WIN32)
- set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
+ list(INSERT CMAKE_FIND_LIBRARY_SUFFIXES 0 .lib .a)
else()
set(CMAKE_FIND_LIBRARY_SUFFIXES .a )
endif()