Skip to content

Instantly share code, notes, and snippets.

@zao
Created December 17, 2012 15:08
Show Gist options
  • Save zao/4318981 to your computer and use it in GitHub Desktop.
Save zao/4318981 to your computer and use it in GitHub Desktop.
FindHPX_Boost.cmake patch for OS X clang-based toolchain
diff --git a/cmake/FindHPX_Boost.cmake b/cmake/FindHPX_Boost.cmake
index e2ad0d9..f3977f0 100644
--- a/cmake/FindHPX_Boost.cmake
+++ b/cmake/FindHPX_Boost.cmake
@@ -57,7 +57,11 @@ macro(build_boost_libname BOOST_RAW_NAME)
endif()
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang"
OR "${CMAKE_CXX_COMPILER}" MATCHES "clang")
- set(BOOST_COMPILER_VERSION "-clang")
+ if(APPLE)
+ set(BOOST_COMPILER_VERSION "-clang-darwin${BOOST_COMPILER_VERSION_NUMBER}")
+ else()
+ set(BOOST_COMPILER_VERSION "-clang")
+ endif()
elseif(MSVC90)
set(BOOST_COMPILER_VERSION "-vc90")
elseif(MSVC10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment