File tree Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Expand file tree Collapse file tree 4 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 1
1
sources :
2
+ " 2.0.3 " :
3
+ url : " https://github.com/simdutf/simdutf/archive/refs/tags/v2.0.3.tar.gz"
4
+ sha256 : " 076bd07f6fd88c5befba28992cd5a9bf033225c5564d8b88559b8059c3c49cfc"
2
5
" 2.0.2 " :
3
6
url : " https://github.com/simdutf/simdutf/archive/refs/tags/v2.0.2.tar.gz"
4
7
sha256 : " ae02a923434c32a9c800e6b136ac039708838ba1f7f6d338175ecb35bf959173"
5
8
" 1.0.1 " :
6
9
url : " https://github.com/simdutf/simdutf/archive/refs/tags/v1.0.1.tar.gz"
7
10
sha256 : " e7832ba58fb95fe00de76dbbb2f17d844a7ad02a6f5e3e9e5ce9520e820049a0"
8
11
patches :
12
+ " 2.0.3 " :
13
+ - patch_file : " patches/2.0.3-0001-fix-cmake.patch"
14
+ patch_description : " remove static build, enable rpath on macOS"
15
+ patch_type : " conan"
16
+ - patch_file : " patches/2.0.2-0002-add-workaround-gcc9.patch"
17
+ patch_description : " apply gcc8 workaround to gcc9"
18
+ patch_type : " portability"
9
19
" 2.0.2 " :
10
20
- patch_file : " patches/2.0.2-0001-fix-cmake.patch"
11
21
patch_description : " remove static build, stop to link static libc++ and enable rpath on macOS"
Original file line number Diff line number Diff line change @@ -59,6 +59,8 @@ def generate(self):
59
59
tc .variables ["BUILD_TESTING" ] = False
60
60
if self .settings .compiler == "gcc" and Version (self .settings .compiler .version ) == "8" :
61
61
tc .variables ["CMAKE_CXX_FLAGS" ] = " -mavx512f"
62
+ if Version (self .version ) >= "2.0.3" :
63
+ tc .variables ["SIMDUTF_TOOLS" ] = False
62
64
tc .generate ()
63
65
64
66
deps = CMakeDeps (self )
Original file line number Diff line number Diff line change
1
+ diff --git a/cmake/simdutf-flags.cmake b/cmake/simdutf-flags.cmake
2
+ index 9263a7f..39f5a8c 100644
3
+ --- a/cmake/simdutf-flags.cmake
4
+ +++ b/cmake/simdutf-flags.cmake
5
+ @@ -16,4 +16,4 @@ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/tools/cmake")
6
+ set(CMAKE_CXX_STANDARD 11)
7
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
8
+ set(CMAKE_CXX_EXTENSIONS OFF)
9
+ - set(CMAKE_MACOSX_RPATH OFF)
10
+ + set(CMAKE_MACOSX_RPATH ON)
11
+ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
12
+ index f3ede1e..91a1bdd 100644
13
+ --- a/src/CMakeLists.txt
14
+ +++ b/src/CMakeLists.txt
15
+ @@ -3,6 +3,6 @@ target_include_directories(simdutf-include-source INTERFACE $<BUILD_INTERFACE:${
16
+ add_library(simdutf-source INTERFACE)
17
+ target_sources(simdutf-source INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>/simdutf.cpp)
18
+ target_link_libraries(simdutf-source INTERFACE simdutf-include-source)
19
+ - add_library(simdutf STATIC simdutf.cpp)
20
+ + add_library(simdutf simdutf.cpp)
21
+ target_include_directories(simdutf PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> )
22
+ target_include_directories(simdutf PUBLIC "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>")
23
+
Original file line number Diff line number Diff line change 1
1
versions :
2
+ " 2.0.3 " :
3
+ folder : all
2
4
" 2.0.2 " :
3
5
folder : all
4
6
" 1.0.1 " :
You can’t perform that action at this time.
0 commit comments