X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=cmake%2Fconfig-ix.cmake;h=dc991a23be075ad3554717c0218bbb594d158775;hb=e89e31275306295457d92d2406c2ead571736683;hp=30168c1a1f3f53b2e5b219b6c886a96108965813;hpb=b77a9c12818124f1da37cab00d72116ddd9ecb0c;p=oota-llvm.git diff --git a/cmake/config-ix.cmake b/cmake/config-ix.cmake index 30168c1a1f3..dc991a23be0 100755 --- a/cmake/config-ix.cmake +++ b/cmake/config-ix.cmake @@ -308,7 +308,7 @@ if (LIBXML2_FOUND) # be checked by CMake, breaking native compilation. # Since this is only pertinent to cross-compilations, and there's no way CMake # can check for every foreign library on every OS, we add the dep and warn the dev. - if ( DEFINED CMAKE_CROSSCOMPILING ) + if ( CMAKE_CROSSCOMPILING ) if (NOT PC_LIBXML_VERSION VERSION_LESS "2.8.0") message(STATUS "Adding LZMA as a dep to XML2 for cross-compilation, make sure liblzma.a is available.") set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARIES} "-llzma") @@ -415,6 +415,7 @@ endif () if( MINGW ) set(HAVE_LIBIMAGEHLP 1) set(HAVE_LIBPSAPI 1) + set(HAVE_LIBSHELL32 1) # TODO: Check existence of libraries. # include(CheckLibraryExists) # CHECK_LIBRARY_EXISTS(imagehlp ??? . HAVE_LIBIMAGEHLP)