<commit_before># Find the wxWidgets module based on the information provided by the Perl Alien::wxWidgets module.

# Check for the Perl & PerlLib modules
include(LibFindMacros)
libfind_package(AlienWx Perl)
libfind_package(AlienWx PerlLibs)

if (AlienWx_DEBUG)
  message(STATUS "  AlienWx_FIND_COMPONENTS=${AlienWx_FIND_COMPONENTS}")
endif()

# Execute an Alien::Wx module to find the relevant information regarding
# the wxWidgets used by the Perl interpreter.
# Perl specific stuff
set(AlienWx_TEMP_INCLUDE ${CMAKE_CURRENT_BINARY_DIR}/AlienWx_TEMP_INCLUDE.txt)
execute_process(
    COMMAND ${PERL_EXECUTABLE} -e "
# Import Perl modules.
use strict;
use warnings;
use Text::ParseWords;
use Alien::wxWidgets;
use ExtUtils::CppGuess;

# Test for a Visual Studio compiler
my \$cpp_guess = ExtUtils::CppGuess->new;
my \$mswin = \$^O eq 'MSWin32';
my \$msvc  = \$cpp_guess->is_msvc;

# List of wxWidgets components to be used.
my @components    = split /;/, '${AlienWx_FIND_COMPONENTS}';

# Query the available data from Alien::wxWidgets.
my \$version      = Alien::wxWidgets->version;
my \$config       = Alien::wxWidgets->config;
my \$compiler     = Alien::wxWidgets->compiler;
my \$linker       = Alien::wxWidgets->linker;
my \$include_path = ' ' . Alien::wxWidgets->include_path;
my \$defines      = ' ' . Alien::wxWidgets->defines;
my \$cflags       = Alien::wxWidgets->c_flags;
my \$linkflags    = Alien::wxWidgets->link_flags;
my \$libraries    = ' ' . Alien::wxWidgets->libraries(@components);
#my @libraries     = Alien::wxWidgets->link_libraries(@components);
#my @implib        = Alien::wxWidgets->import_libraries(@components);
#my @shrlib        = Alien::wxWidgets->shared_libraries(@components);
#my @keys          = Alien::wxWidgets->library_keys; # 'gl', 'adv', ...<commit_msg>CMake build process: Fix of the Perl Alien::Wx querying script.<commit_after># Find the wxWidgets module based on the information provided by the Perl Alien::wxWidgets module.

# Check for the Perl & PerlLib modules
include(LibFindMacros)
libfind_package(AlienWx Perl)
libfind_package(AlienWx PerlLibs)

if (AlienWx_DEBUG)
  message(STATUS "  AlienWx_FIND_COMPONENTS=${AlienWx_FIND_COMPONENTS}")
endif()

# Execute an Alien::Wx module to find the relevant information regarding
# the wxWidgets used by the Perl interpreter.
# Perl specific stuff
set(AlienWx_TEMP_INCLUDE ${CMAKE_CURRENT_BINARY_DIR}/AlienWx_TEMP_INCLUDE.txt)
execute_process(
    COMMAND ${PERL_EXECUTABLE} -e "
# Import Perl modules.
use strict;
use warnings;
use Text::ParseWords;

BEGIN {
  # CMake sets the environment variables CC and CXX to the detected C compiler.
  # There is an issue with the Perl ExtUtils::CBuilder, which does not handle whitespaces
  # in the paths correctly on Windows, so we rather drop the CMake auto-detected paths.
  delete \$ENV{CC};
  delete \$ENV{CXX};
}

use Alien::wxWidgets;
use ExtUtils::CppGuess;

# Test for a Visual Studio compiler
my \$cpp_guess = ExtUtils::CppGuess->new;
my \$mswin = \$^O eq 'MSWin32';
my \$msvc  = \$cpp_guess->is_msvc;

# List of wxWidgets components to be used.
my @components    = split /;/, '${AlienWx_FIND_COMPONENTS}';

# Query the available data from Alien::wxWidgets.
my \$version      = Alien::wxWidgets->version;
my \$config       = Alien::wxWidgets->config;
my \$compiler     = Alien::wxWidgets->compiler;
my \$linker       = Alien::wxWidgets->linker;
my \$include_path = ' ' . Alien::wxWidgets->include_path;
my \$defines      = ' ' . Alien::wxWidgets->defines;
my \$cflags       = Alien::wxWidgets->c_flags;
my \$linkflags    = Alien::wxWidgets->link_flags;
my \$libraries    = ' ' . Alien::wxWidgets->libraries(@components);
#my @libraries     = Alien::wxWidgets->link_libraries(@components);
#my @implib        = Alien::wxWidgets->import_libraries(@components);
#my @shrlib        = Alien::wxWidgets->shared_libraries(@components);
#my @keys          = Alien::wxWidgets->library_keys; # 'gl', 'adv', ...
{'fraction_non_alphanumeric': 0.12744351358212744, 'fraction_numerical': 0.0010154861640010156, 'mean_word_length': 4.628571428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '221585', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1304, 'n_words': 344}