File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -39,3 +39,12 @@ install(PROGRAMS run_O2CodeChecker.py DESTINATION bin)
3939# we need to install the builtin headers in a path which is searched by the tool
4040# FIXME: a soft link would be better
4141install (DIRECTORY ${LLVM_LIBRARY_DIR} /clang/${LLVM_PACKAGE_VERSION} /include DESTINATION lib/clang/${LLVM_PACKAGE_VERSION} )
42+
43+ IF (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
44+ # On MacOS we need to do the same with C++ headers since they are in a non-standard location
45+ # (alternative would be to set the CPATH environment variable)
46+ INSTALL (CODE "execute_process(COMMAND mkdir ${CMAKE_INSTALL_PREFIX} /include)" )
47+ INSTALL (CODE "execute_process(COMMAND ln -sf \
48+ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++ \
49+ ${CMAKE_INSTALL_PREFIX} /include/c++)" )
50+ ENDIF ()
You can’t perform that action at this time.
0 commit comments