vcpkg/ports/yara
Jaime Soto c5f77be5c5 [yara] Remove Windows-only assumptions in CMakeLists.txt (#4431)
* [yara] Remove Windows-only assumptions in CMakeLists.txt

Fixes x64-linux build. Addresses GitHub vcpkg issue #4411.

Defines `libyara_dependencies` and `libyara_definitions` CMake variables
to simplify calls to `target_link_libraries` and
`target_compile_definitions`, respectively.

Replaces `USE_WINDOWS_PROC` definition with platform-specific definition
(e.g., `USE_LINUX_PROC`) based on how `proc_interface` is defined in
configure.ac. Currently supports only Windows, Linux, and Darwin.
Replaces libyara/proc/windows.c source file with platform-specific
source file from libyara/proc.

Adds missing libyara/endian.c and libyara/stopwatch.c source files to
`libyara_sources` variable. Addresses missing byte-swap symbols
(`_yr_bswap16`, `_yr_bswap32`, and `_yr_bswap64`).

Adds `find_package` call for `Threads`, setting pthread as preferred
threads library in Linux. Adds `Threads::Threads` as a libyara dependency.
Addresses missing thread and semaphore symbols.

Adds `m` (math library) as a dependency if building with GCC to address
missing `log2` symbol.

* [yara] Bump control version
2018-10-09 00:22:07 -07:00
..
CMakeLists.txt [yara] Remove Windows-only assumptions in CMakeLists.txt (#4431) 2018-10-09 00:22:07 -07:00
CONTROL [yara] Remove Windows-only assumptions in CMakeLists.txt (#4431) 2018-10-09 00:22:07 -07:00
portfile.cmake [yara] init 2018-01-29 20:53:31 +02:00