diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-06-18 15:14:30 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-06-25 09:07:51 +0200 |
commit | a0bd8c7893d9f8c93db6c6640dd5135e42b60303 (patch) | |
tree | 0fe5711ce260b2be6abb7253601e0b366f5206c2 /src/3rdparty/pcre2 | |
parent | 3cd614644af5812f087aa39cadd20de531e5994e (diff) |
CMake: Fix pcre2 compilation with intelcet part 2
I somehow forgot that we build the pcre2 sources not only as part of
the bootstrap library and qmake, but also as separate library as well.
Apply the flags to the bundled library.
Amends 976fa5134aea52741df7b25a196fa36251dc932f
Amends fa98adbd04de9d44ce921436b92589a41f285dcd
Change-Id: Ia1db3a8bd731c7e3ee4d7109be8e2ef98c594070
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'src/3rdparty/pcre2')
-rw-r--r-- | src/3rdparty/pcre2/.prev_CMakeLists.txt | 76 | ||||
-rw-r--r-- | src/3rdparty/pcre2/CMakeLists.txt | 4 |
2 files changed, 80 insertions, 0 deletions
diff --git a/src/3rdparty/pcre2/.prev_CMakeLists.txt b/src/3rdparty/pcre2/.prev_CMakeLists.txt new file mode 100644 index 0000000000..1a63de4d54 --- /dev/null +++ b/src/3rdparty/pcre2/.prev_CMakeLists.txt @@ -0,0 +1,76 @@ +# Generated from pcre2.pro. + +##################################################################### +## BundledPcre2 Generic Library: +##################################################################### + +qt_add_3rdparty_library(BundledPcre2 + QMAKE_LIB_NAME pcre2 + STATIC + SOURCES + src/config.h + src/pcre2.h + src/pcre2_auto_possess.c + src/pcre2_chartables.c + src/pcre2_compile.c + src/pcre2_config.c + src/pcre2_context.c + src/pcre2_dfa_match.c + src/pcre2_error.c + src/pcre2_extuni.c + src/pcre2_find_bracket.c + src/pcre2_internal.h + src/pcre2_intmodedep.h + src/pcre2_jit_compile.c + src/pcre2_maketables.c + src/pcre2_match.c + src/pcre2_match_data.c + src/pcre2_newline.c + src/pcre2_ord2utf.c + src/pcre2_pattern_info.c + src/pcre2_script_run.c + src/pcre2_serialize.c + src/pcre2_string_utils.c + src/pcre2_study.c + src/pcre2_substitute.c + src/pcre2_substring.c + src/pcre2_tables.c + src/pcre2_ucd.c + src/pcre2_ucp.h + src/pcre2_valid_utf.c + src/pcre2_xclass.c + DEFINES + HAVE_CONFIG_H + PUBLIC_DEFINES + PCRE2_CODE_UNIT_WIDTH=16 + PUBLIC_INCLUDE_DIRECTORIES + $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src> +) +qt_disable_warnings(BundledPcre2) +qt_set_symbol_visibility_hidden(BundledPcre2) + +## Scopes: +##################################################################### + +qt_extend_target(BundledPcre2 CONDITION QNX OR UIKIT + DEFINES + PCRE2_DISABLE_JIT +) + +qt_extend_target(BundledPcre2 CONDITION (TEST_architecture_arch STREQUAL "arm") AND WIN32 + DEFINES + PCRE2_DISABLE_JIT +) + +qt_extend_target(BundledPcre2 CONDITION (TEST_architecture_arch STREQUAL "arm64") AND WIN32 + DEFINES + PCRE2_DISABLE_JIT +) + +qt_extend_target(BundledPcre2 CONDITION WIN32 + PUBLIC_DEFINES + PCRE2_STATIC +) + +#### Keys ignored in scope 7:.:.:pcre2.pri:QT_FEATURE_intelcet: +# QMAKE_CFLAGS = "$$QMAKE_CFLAGS_SHSTK" diff --git a/src/3rdparty/pcre2/CMakeLists.txt b/src/3rdparty/pcre2/CMakeLists.txt index 1a63de4d54..22291cabed 100644 --- a/src/3rdparty/pcre2/CMakeLists.txt +++ b/src/3rdparty/pcre2/CMakeLists.txt @@ -74,3 +74,7 @@ qt_extend_target(BundledPcre2 CONDITION WIN32 #### Keys ignored in scope 7:.:.:pcre2.pri:QT_FEATURE_intelcet: # QMAKE_CFLAGS = "$$QMAKE_CFLAGS_SHSTK" + +# special case begin +qt_internal_apply_intel_cet(BundledPcre2 PRIVATE) +# special case end |