comparison CMakeLists.txt @ 1547:259b031f3d22

Some minor cleanups * remove an #ifdef USE_METADATA I accidently left in * remove now unneeded llvm-version includes * fix indentation in metadata.h * prevent the "Found native target" message from interrupting ccmake
author Benjamin Kramer <benny.kra@gmail.com>
date Mon, 20 Jul 2009 18:16:11 +0200
parents 6766485fb584
children 3adcb70700cb
comparison
equal deleted inserted replaced
1546:f9660d9cf2ba 1547:259b031f3d22
148 message("Couldn't find your llvm Config.h file in ${LLVM_INCLUDEDIR}, no native target will be initialized.") 148 message("Couldn't find your llvm Config.h file in ${LLVM_INCLUDEDIR}, no native target will be initialized.")
149 else(LLVM_CONFIG_FILE_PATH STREQUAL "LLVM_CONFIG_FILE_PATH-NOTFOUND") 149 else(LLVM_CONFIG_FILE_PATH STREQUAL "LLVM_CONFIG_FILE_PATH-NOTFOUND")
150 file(STRINGS ${LLVM_CONFIG_FILE_PATH}/config.h LLVM_NATIVE_ARCH REGEX "^#define LLVM_NATIVE_ARCH") 150 file(STRINGS ${LLVM_CONFIG_FILE_PATH}/config.h LLVM_NATIVE_ARCH REGEX "^#define LLVM_NATIVE_ARCH")
151 if(LLVM_NATIVE_ARCH) 151 if(LLVM_NATIVE_ARCH)
152 string(REGEX REPLACE "^#define LLVM_NATIVE_ARCH (.*)Target$" "\\1" LLVM_NATIVE_ARCH ${LLVM_NATIVE_ARCH}) 152 string(REGEX REPLACE "^#define LLVM_NATIVE_ARCH (.*)Target$" "\\1" LLVM_NATIVE_ARCH ${LLVM_NATIVE_ARCH})
153 message("Found native target ${LLVM_NATIVE_ARCH}") 153 message(STATUS "Found native target ${LLVM_NATIVE_ARCH}")
154 set(LLVM_MODULES_DEFINE "LLVM_TARGET(${LLVM_NATIVE_ARCH})") 154 set(LLVM_MODULES_DEFINE "LLVM_TARGET(${LLVM_NATIVE_ARCH})")
155 else(LLVM_NATIVE_ARCH) 155 else(LLVM_NATIVE_ARCH)
156 message("Couldn't find the LLVM_NATIVE_ARCH define in ${LLVM_CONFIG_FILE_PATH}/config.h. Probably you have an older LLVM and can ignore this warning.") 156 message("Couldn't find the LLVM_NATIVE_ARCH define in ${LLVM_CONFIG_FILE_PATH}/config.h. Probably you have an older LLVM and can ignore this warning.")
157 endif(LLVM_NATIVE_ARCH) 157 endif(LLVM_NATIVE_ARCH)
158 endif(LLVM_CONFIG_FILE_PATH STREQUAL "LLVM_CONFIG_FILE_PATH-NOTFOUND") 158 endif(LLVM_CONFIG_FILE_PATH STREQUAL "LLVM_CONFIG_FILE_PATH-NOTFOUND")