summaryrefslogtreecommitdiffstats
path: root/Modules/FindBoost.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-11-02 19:13:47 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2017-11-03 15:43:22 (GMT)
commit335816efad6904fb5c6059a791d7b0eea4882bc0 (patch)
treea7281286244c0c074768ea5826d6b567cb5d23d1 /Modules/FindBoost.cmake
parent817331aae8c9f166baa7ada5e015dcb5442c0038 (diff)
downloadCMake-335816efad6904fb5c6059a791d7b0eea4882bc0.zip
CMake-335816efad6904fb5c6059a791d7b0eea4882bc0.tar.gz
CMake-335816efad6904fb5c6059a791d7b0eea4882bc0.tar.bz2
FindBoost: use CMake's compiler version rather than querying again
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r--Modules/FindBoost.cmake7
1 files changed, 1 insertions, 6 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index 88d14ab..bf52d29 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -391,13 +391,8 @@ endmacro()
# version with a regex.
#
function(_Boost_COMPILER_DUMPVERSION _OUTPUT_VERSION)
-
- exec_program(${CMAKE_CXX_COMPILER}
- ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
- OUTPUT_VARIABLE _boost_COMPILER_VERSION
- )
string(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
- _boost_COMPILER_VERSION ${_boost_COMPILER_VERSION})
+ _boost_COMPILER_VERSION ${CMAKE_CXX_COMPILER_VERSION})
set(${_OUTPUT_VERSION} ${_boost_COMPILER_VERSION} PARENT_SCOPE)
endfunction()