X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=CMakeLists.txt;h=71a74260ab3b22b966af98ed5c7e727be0f404a5;hb=5c4e83626cceb2edf9ed158d89599dee0e878932;hp=ed2c405f5d9c2bbb7c79a78837aaf9cd9b8bfd67;hpb=4c40840d385835be0bc478cc0b957ff8f2beba95;p=oota-llvm.git diff --git a/CMakeLists.txt b/CMakeLists.txt index ed2c405f5d9..71a74260ab3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -376,6 +376,13 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON) include_directories( ${LLVM_BINARY_DIR}/include ${LLVM_MAIN_INCLUDE_DIR}) +if( ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD ) + # On FreeBSD, /usr/local/* is not used by default. In order to build LLVM + # with libxml2, iconv.h, etc., we must add /usr/local paths. + include_directories("/usr/local/include") + link_directories("/usr/local/lib") +endif( ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD ) + if( ${CMAKE_SYSTEM_NAME} MATCHES SunOS ) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include llvm/Support/Solaris.h") endif( ${CMAKE_SYSTEM_NAME} MATCHES SunOS )