Displaying 7 results from an estimated 7 matches for "target_compile_definitions".
2015 Oct 06
2
Extra space in LLVM_DEFINITIONS causes CMake 3.1 to fail
...ORMAT_MACROS -D__STDC_LIMIT_MACROS")
(note that it is no longer a cmake list but a string, and the string contains a leading space!)
This causes CMake 3.1 to emit
g++ -D -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS […]
when LLVM_DEFINITIONS is used via target_compile_definitions. Which, unsurprisingly, fails.
Although this issue is fixed in current CMake versions (3.2+), do we really want to require these versions just to have
LLVM_DEFINITIONS defined as a string instead of a list? A simple check if LLVM_DEFINITIONS is empty in add_llvm_definitions might
solve the issu...
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
...make_minimum_required(VERSION 3.12)
project(llvm_test)
set(CMAKE_CXX_STANDARD 14)
find_package(LLVM REQUIRED CONFIG)
llvm_map_components_to_libnames(llvm_libs support core irreader orcjit native)
add_executable(llvm_test main.cpp)
target_include_directories(llvm_test PUBLIC ${LLVM_INCLUDE_DIRS})
target_compile_definitions(llvm_test PUBLIC ${LLVM_DEFINITIONS})
target_link_libraries(llvm_test ${llvm_libs})
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190918/268ef7c0/attachment.html>
2019 Sep 18
2
EngineBuilder(std::move(Owner)).create() return null
...t(llvm_test)
>
> set(CMAKE_CXX_STANDARD 14)
>
> find_package(LLVM REQUIRED CONFIG)
> llvm_map_components_to_libnames(llvm_libs support core irreader orcjit native)
>
> add_executable(llvm_test main.cpp)
> target_include_directories(llvm_test PUBLIC ${LLVM_INCLUDE_DIRS})
> target_compile_definitions(llvm_test PUBLIC ${LLVM_DEFINITIONS})
> target_link_libraries(llvm_test ${llvm_libs})
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
--------------...
2015 Oct 06
2
Extra space in LLVM_DEFINITIONS causes CMake 3.1 to fail
...-D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS")
(note that it is no longer a cmake list but a string, and the string contains a leading space!)
This causes CMake 3.1 to emit
g++ -D -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS [...]
when LLVM_DEFINITIONS is used via target_compile_definitions. Which, unsurprisingly, fails.
Although this issue is fixed in current CMake versions (3.2+), do we really want to require these versions just to have LLVM_DEFINITIONS defined as a string instead of a list? A simple check if LLVM_DEFINITIONS is empty in add_llvm_definitions might solve the issue....
2017 May 29
0
[PATCH] Add CMake build script
.../cb_search.h
+ libspeex/fftwrap.h
+ libspeex/fftwrap.c
+ libspeex/fixed_generic.h
+ libspeex/lsp.h
+ libspeex/lsp_bfin.h
+ libspeex/ltp_bfin.h
+ libspeex/modes.h
+ libspeex/os_support.h
+ libspeex/quant_lsp_bfin.h
+ libspeex/smallft.h)
+
+add_library(speex ${speex_PUBLIC_HEADERS} ${speex_SOURCES})
+target_compile_definitions(speex
+ PRIVATE -DHAVE_CONFIG_H)
+target_include_directories(speex
+ PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include/speex>
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
+ PUBLIC $<INSTALL_I...
2015 Feb 24
3
[LLVMdev] [RFC] Raise minimum required CMake version to 3.0
...ependencies that are arbitrary files instead of just link dependencies (http://community.kde.org/Frameworks/Epics/CMake_target_usage_requirements <http://community.kde.org/Frameworks/Epics/CMake_target_usage_requirements>)
* target_include_directories command (allows us to cleanup our code)
* target_compile_definitions command (allows us to cleanup our code)
* More updates to the Interface library features
CMake 2.8.12
* New ALIAS targets
* CMAKE_CONFIGURATION_TYPES variable is defined in multi-config generators (we already use this)
* XCODE_ATTRIBUTE_* might be nice for our Xcode users…
* cmake_reset_check_stat...
2015 Feb 24
2
[LLVMdev] [RFC] Raise minimum required CMake version to 3.0
> On Feb 24, 2015, at 11:13 AM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>>
>> On Feb 24, 2015, at 9:33 AM, Chris Bieneman <beanz at apple.com> wrote:
>>
>>>
>>> On Feb 24, 2015, at 8:45 AM, Tobias Grosser <tobias at grosser.es> wrote:
>>>
>>> On 09.02.2015 20:12, Chris Bieneman wrote:
>>>> It