Seems extra hints are needed to find llvm-config on linux
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 20 Nov 2012 08:04:53 +0000 (08:04 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 20 Nov 2012 08:04:53 +0000 (08:04 +0000)
CMakeLists.txt

index c2e2ca2..cc45000 100644 (file)
@@ -716,9 +716,9 @@ if(UNIX AND NOT APPLE)
                        set(LLVM_VERSION "3.0")
                endif()
                set(LLVM_STATIC YES)
-               FIND_PROGRAM(LLVM_CONFIG llvm-config-${LLVM_VERSION} HINTS ${LLVM_DIRECTORY})
+               FIND_PROGRAM(LLVM_CONFIG llvm-config-${LLVM_VERSION} HINTS ${LLVM_DIRECTORY} ${LLVM_DIRECTORY}/bin)
                if(NOT LLVM_CONFIG)
-                       FIND_PROGRAM(LLVM_CONFIG llvm-config HINTS ${LLVM_DIRECTORY})
+                       FIND_PROGRAM(LLVM_CONFIG llvm-config HINTS ${LLVM_DIRECTORY} ${LLVM_DIRECTORY}/bin)
                endif()
                execute_process(COMMAND ${LLVM_CONFIG} --version
                                OUTPUT_VARIABLE LLVM_VERSION