Commits

Mark Moll  committed 653e4fc

use the right compiler for gccxml. closes #5

  • Participants
  • Parent commits 1b8eb37

Comments (0)

Files changed (2)

File src/CMakeLists.txt

 install(DIRECTORY external/omplext_odeint/ DESTINATION "include/omplext_odeint${OMPL_INSTALL_SUFFIX}")
 
 # Add target to install Py++ and its dependencies pygccxml and gccxml
+if (APPLE)
+    # need to compile gccxml with llvm-gcc-4.2 instead of clang
+    set(CMAKE_GCCXML_ARGS "-DCMAKE_C_COMPILER=llvm-gcc-4.2 -DCMAKE_CXX_COMPILER=llvm-g++-4.2")
+endif()
 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.sh.in"
     "${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.sh" @ONLY)
 configure_file("${CMAKE_CURRENT_SOURCE_DIR}/external/installPyPlusPlus.bat.in"

File src/external/installPyPlusPlus.sh.in

 
 # build & install gccxml
 cd gccxml
-cmake .
+cmake @CMAKE_GCCXML_ARGS@ .
 make
 sudo make install