Commit Graph

9 Commits

Author SHA1 Message Date
Peter Matula
361e42b5b0 deps/capstone: disable AT&T asm syntax. 2018-01-19 13:13:04 +01:00
Peter Matula
b659bc6c62 deps/capstone: build only what is actually needed at the moment. 2018-01-19 13:11:12 +01:00
Petr Zemek
405e21d96f Add DOWNLOAD_NAME for each external project.
Reasons:
- Downloaded archives will have more meaningful names (e.g. capstone.zip
  instead of 27c713fe4f6eaf9721785932d850b6291a6073fe.zip).
- This prevents collisions between projects (e.g. both yaracpp and yaramod are
  in version 1.0.1 at the moment, so they were both downloaded as v1.0.1.zip).
2018-01-19 11:57:50 +01:00
Petr Zemek
39b74bf554 Replace uses of CMAKE_FIND_LIBRARY_PREFIXES with CMAKE_STATIC_LIBRARY_PREFIX.
From https://cmake.org/cmake/help/latest/variable/CMAKE_FIND_LIBRARY_PREFIXES.html:

    This specifies what prefixes to add to library names when the
    find_library() command looks for libraries.

What we want is CMAKE_STATIC_LIBRARY_PREFIX:

    The prefix to use for the name of a static library, lib on UNIX.

Also, we are already using CMAKE_STATIC_LIBRARY_SUFFIX, so this change also
makes the used variables consistent.
2018-01-12 12:25:13 +01:00
Petr Zemek
13365143f9 Remove useless cmake_minimum_required() command from nested CMakeLists.txt files.
We just need this command in the top-level CMakeLists.txt.
2018-01-12 09:20:33 +01:00
Petr Zemek
9ef11c96d2 Unify formatting in CMakeLists.txt files.
* Remove redundant first empty line from some files.
* Convert spaces to tabs.
* Remove redundant comments.
2018-01-12 09:00:52 +01:00
Petr Zemek
1e8294c264 Download external projects via URL instead of GIT_REPOSITORY.
The use of URL is safer than GIT_REPOSITORY as CMake does not update the cloned
repository when GIT_TAG changes. On the other hand, it downloads new sources
when URL changes.
2018-01-12 08:33:07 +01:00
Peter Matula
30a9f172a1 deps: remove target guards from CMake files. 2018-01-10 16:33:15 +01:00
Peter Matula
7cad5076c0 all in one repo, no submodules, deps via cmake external project 2018-01-05 11:26:55 +01:00