diff options
| author | 2017-05-29 15:12:21 -0700 | |
|---|---|---|
| committer | 2017-05-29 15:12:21 -0700 | |
| commit | a4f88c7d7c94107df6bfada31617ff553bb5e89e (patch) | |
| tree | cb0d3adbbe115604051300ae451a22a4de751b27 /externals/cryptopp | |
| parent | Merge pull request #2729 from yuriks/quaternion-fix (diff) | |
| parent | CMake: Re-organize root CMakeLists.txt file (diff) | |
| download | yuzu-a4f88c7d7c94107df6bfada31617ff553bb5e89e.tar.gz yuzu-a4f88c7d7c94107df6bfada31617ff553bb5e89e.tar.xz yuzu-a4f88c7d7c94107df6bfada31617ff553bb5e89e.zip | |
Merge pull request #2734 from yuriks/cmake-imported-libs
CMake: Use CMake target properties for all libraries
Diffstat (limited to 'externals/cryptopp')
| -rw-r--r-- | externals/cryptopp/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/externals/cryptopp/CMakeLists.txt b/externals/cryptopp/CMakeLists.txt index 653af1e4b..864de18bb 100644 --- a/externals/cryptopp/CMakeLists.txt +++ b/externals/cryptopp/CMakeLists.txt | |||
| @@ -10,6 +10,7 @@ | |||
| 10 | # - disabled installation | 10 | # - disabled installation |
| 11 | # - disabled documentation | 11 | # - disabled documentation |
| 12 | # - configured to build a static library only | 12 | # - configured to build a static library only |
| 13 | # - adds include directories to the library target | ||
| 13 | 14 | ||
| 14 | include(TestBigEndian) | 15 | include(TestBigEndian) |
| 15 | include(CheckCXXCompilerFlag) | 16 | include(CheckCXXCompilerFlag) |
| @@ -148,14 +149,15 @@ endif() | |||
| 148 | # Compile targets | 149 | # Compile targets |
| 149 | #============================================================================ | 150 | #============================================================================ |
| 150 | add_library(cryptopp STATIC ${cryptopp_SOURCES}) | 151 | add_library(cryptopp STATIC ${cryptopp_SOURCES}) |
| 152 | target_include_directories(cryptopp INTERFACE .) | ||
| 151 | 153 | ||
| 152 | #============================================================================ | 154 | #============================================================================ |
| 153 | # Third-party libraries | 155 | # Third-party libraries |
| 154 | #============================================================================ | 156 | #============================================================================ |
| 155 | 157 | ||
| 156 | if(WIN32) | 158 | if(WIN32) |
| 157 | target_link_libraries(cryptopp ws2_32) | 159 | target_link_libraries(cryptopp PRIVATE ws2_32) |
| 158 | endif() | 160 | endif() |
| 159 | 161 | ||
| 160 | find_package(Threads) | 162 | find_package(Threads) |
| 161 | target_link_libraries(cryptopp ${CMAKE_THREAD_LIBS_INIT}) | 163 | target_link_libraries(cryptopp PRIVATE ${CMAKE_THREAD_LIBS_INIT}) |