Permalink
Browse files

force use of gcc on os x (in preference to clang)

  • Loading branch information...
jjallaire committed Mar 3, 2012
1 parent 8eea72c commit 3c3e9cf8d174487eb49bff95da13fa46d1398b43
Showing with 12 additions and 0 deletions.
  1. +6 −0 CMakeLists.txt
  2. +6 −0 src/cpp/CMakeLists.txt
View
@@ -11,6 +11,12 @@
#
#
+# force gcc on os x (in preference to clang)
+if(APPLE)
+ set(CMAKE_C_COMPILER /usr/bin/gcc)
+ set(CMAKE_CXX_COMPILER /usr/bin/g++)
+endif()
+
cmake_minimum_required(VERSION 2.6)
project (RStudio)
View
@@ -11,6 +11,12 @@
#
#
+# force gcc on os x (in preference to clang)
+if(APPLE)
+ set(CMAKE_C_COMPILER /usr/bin/gcc)
+ set(CMAKE_CXX_COMPILER /usr/bin/g++)
+endif()
+
cmake_minimum_required(VERSION 2.6)
project (RSTUDIO_CPP)

0 comments on commit 3c3e9cf

Please sign in to comment.