Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf895972

Browse files
committed
re2 via find_package() einbinden
1 parentffa1ce3 commitf895972

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎CMakeLists.txt‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ project("Regular Expressions" LANGUAGES CXX)
44
set_property(GLOBAL PROPERTYUSE_FOLDERSON)
55

66
find_package(Boost REQUIRED COMPONENTSregex)
7+
find_package(re2 CONFIG REQUIRED)
78

8-
find_library(RE2_LIBRARY re2)
99
find_library(Hyperscan_LIBRARY hs)
1010
find_library(PCRE_LIBRARY pcre)
1111
find_library(PCRE2_LIBRARY pcre2-8)
1212

13-
find_path(RE2_INCLUDE_DIRS re2/re2.h)
1413
find_path(Hyperscan_INCLUDE_DIRS hs/hs.h)
1514
find_path(PCRE_INCLUDE_DIRS pcre.h)
1615
find_path(PCRE2_INCLUDE_DIRS pcre2.h)
@@ -46,7 +45,7 @@ target_include_directories(pcre_jit PRIVATE ${PCRE_INCLUDE_DIRS})
4645
target_include_directories(pcre2_jitPRIVATE${PCRE2_INCLUDE_DIRS})
4746

4847
target_link_libraries(boostPRIVATE${Boost_LIBRARIES})
49-
target_link_libraries(re2PRIVATE"${RE2_LIBRARY}")
48+
target_link_libraries(re2PRIVATEre2::re2)
5049
target_link_libraries(hyperscanPRIVATE"${Hyperscan_LIBRARY}")
5150
target_link_libraries(pcrePRIVATE"${PCRE_LIBRARY}")
5251
target_link_libraries(pcre2PRIVATE"${PCRE2_LIBRARY}")

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp