search for: cmake_required_libraries

Displaying 6 results from an estimated 6 matches for "cmake_required_libraries".

2014 Sep 17
2
[LLVMdev] proposal to avoid zlib dependency.
...RS} are used anyways as they will be set to NOTFOUND. Or we go back to a silent-fail solution: Fair enough. I've never been a big fan of silent failure. So perhaps just this... ``` if (LLVM_ENABLE_ZLIB ) find_package(ZLIB REQUIRED) set(HAVE_ZLIB_H 1) set(HAVE_LIBZ 1) list(APPEND CMAKE_REQUIRED_LIBRARIES ${ZLIB_LIBRARIES}) list(APPEND CMAKE_REQUIRED_INCLUDES ${ZLIB_INCLUDE_DIRS}) else() set(HAVE_ZLIB_H 0) set(HAVE_LIBZ 0) endif() ``` -- Dan Liew PhD Student - Imperial College London
2014 Apr 03
2
[LLVMdev] r204593 breaks Asan tests on FreeBSD
...rence to libcxxrt. The quick fix is trivial: --- Index: cmake/config-ix.cmake =================================================================== --- cmake/config-ix.cmake (revision 205543) +++ cmake/config-ix.cmake (working copy) @@ -17,6 +17,7 @@ # Used by check_symbol_exists: set(CMAKE_REQUIRED_LIBRARIES m) endif() +list(APPEND CMAKE_REQUIRED_LIBRARIES ${LLVM_CONFIG_TEST_LIBRARIES}) # Helper macros and functions macro(add_cxx_include result files) --- Do you think this fix would make sense for building llvm on other platforms? I mean, do you think it looks acceptable to be sent for review...
2010 Jun 21
0
Flac in Sox
Hi, I didn't get any answer for my problem at sox mailing list. May be someone on this list has an idea...? I want to compile libsox.lib with Flac-handler. So I first compiled "libFLAC_static.lib" without problems. Then I changed "CMakeLists.txt": I added this line: set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} libFLAC_static.lib) and now Have_Flac is found. But there is still a problem with this line: optional(HAVE_FLAC FLAC/all.h FLAC FLAC__stream_encoder_new flac) because "FLAC__stream_encoder_new" is not found (cmake)! Should this be in an other library or...?...
2010 Jul 16
0
libFLAC_static / CMake
Hello, trying to compile a project with MSVC++ and libFLAC_static.lib I have a CMakeLists.txt with this: set(CMAKE_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} libFLAC_static.lib) optional(HAVE_FLAC FLAC/all.h libFLAC_static FLAC__stream_encoder_new flac) optional(STATIC_FLAC FLAC/all.h libFLAC_static FLAC__stream_encoder_new flac) CMake answer (the *.lib is always found): Looking for FLAC__stream_encoder_new in libFLAC_stati...
2014 Sep 17
2
[LLVMdev] proposal to avoid zlib dependency.
On 17 September 2014 15:47, Mueller-Roemer, Johannes Sebastian <Johannes.Sebastian.Mueller-Roemer at igd.fraunhofer.de> wrote: > It's half the way there. Configuring and compiling works, but linking fails, probably some definition mismatches... It configured, compiled and linked okay for me. Could you look into it? > > But it can definitely be simplified, as due to the
2014 Apr 01
2
[LLVMdev] r204593 breaks Asan tests on FreeBSD
On Tue, Apr 1, 2014 at 1:23 PM, Ivan A. Kosarev <ivan at ivan-labs.com> wrote: > Hi Alexey, > > > On 03/31/2014 09:58 PM, Alexey Samsonov wrote: > > On FreeBSD 9.2 I add a couple custom options to CMAKE_CXX_FLAGS in order > to let clang know which header set it should use, like that: > >> >>> CC=clang CXX=clang++ cmake \ >>>