diff options
author | Philip Lowman <philip@yhbt.com> | 2009-01-20 00:21:10 (GMT) |
---|---|---|
committer | Philip Lowman <philip@yhbt.com> | 2009-01-20 00:21:10 (GMT) |
commit | 9aaa9f75295c9c0399519b8c903a7aa77406f03d (patch) | |
tree | 0b16861839530454b2fb90c76d54c96a68cef79b /Modules/FindBoost.cmake | |
parent | d1640b11def5076223a87680adb6341b1dbd2c10 (diff) | |
download | CMake-9aaa9f75295c9c0399519b8c903a7aa77406f03d.zip CMake-9aaa9f75295c9c0399519b8c903a7aa77406f03d.tar.gz CMake-9aaa9f75295c9c0399519b8c903a7aa77406f03d.tar.bz2 |
BUG: Switch FindBoost.cmake to use CMAKE_COMPILER_IS_GNUCXX (Issue #8398)
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r-- | Modules/FindBoost.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index 04adf96..a92f2fe 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -532,7 +532,7 @@ ELSE (_boost_IN_CACHE) SET (_boost_COMPILER "-mgw${_boost_COMPILER_VERSION}") endif() elseif (UNIX) - if (CMAKE_COMPILER_IS_GNUCC) + if (CMAKE_COMPILER_IS_GNUCXX) if(${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION} VERSION_LESS 1.34) SET(_boost_COMPILER "-gcc") # no GCC version encoding prior to 1.34 else() @@ -563,7 +563,7 @@ ELSE (_boost_IN_CACHE) SET (_boost_COMPILER "-gcc${_boost_COMPILER_VERSION}") ENDIF() endif() - endif (CMAKE_COMPILER_IS_GNUCC) + endif (CMAKE_COMPILER_IS_GNUCXX) endif() if(Boost_DEBUG) message(STATUS "[ ${CMAKE_CURRENT_LIST_FILE}:${CMAKE_CURRENT_LIST_LINE} ] " |