diff options
| author | 2017-05-27 18:26:55 -0700 | |
|---|---|---|
| committer | 2017-05-27 18:41:24 -0700 | |
| commit | 7b81903756451281bd1f07d8e9a2dceeff79df08 (patch) | |
| tree | ba001a9832ee8965963d17fd4e93e9222e1153de /src/common | |
| parent | Citra: Convert include into forward declaration (diff) | |
| download | yuzu-7b81903756451281bd1f07d8e9a2dceeff79df08.tar.gz yuzu-7b81903756451281bd1f07d8e9a2dceeff79df08.tar.xz yuzu-7b81903756451281bd1f07d8e9a2dceeff79df08.zip | |
CMake: Correct inter-module dependencies and library visibility
Modules didn't correctly define their dependencies before, which relied
on the frontends implicitly including every module for linking to
succeed.
Also changed every target_link_libraries call to specify visibility of
dependencies to avoid leaking definitions to dependents when not
necessary.
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 546a14500..a33a8cdbe 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt | |||
| @@ -96,5 +96,5 @@ create_directory_groups(${SRCS} ${HEADERS}) | |||
| 96 | 96 | ||
| 97 | add_library(common STATIC ${SRCS} ${HEADERS}) | 97 | add_library(common STATIC ${SRCS} ${HEADERS}) |
| 98 | if (ARCHITECTURE_x86_64) | 98 | if (ARCHITECTURE_x86_64) |
| 99 | target_link_libraries(common xbyak) | 99 | target_link_libraries(common PRIVATE xbyak) |
| 100 | endif() | 100 | endif() |