diff options
| author | 2018-10-10 20:54:00 -0400 | |
|---|---|---|
| committer | 2018-10-10 20:54:02 -0400 | |
| commit | 6e6ce2ce39b1461c0cf870f79e0d0dde1cfe2d35 (patch) | |
| tree | 46243fafb797c1850b5a2e7b0ec4e7cc020f7674 | |
| parent | Merge pull request #1460 from FernandoS27/scissor_test (diff) | |
| download | yuzu-6e6ce2ce39b1461c0cf870f79e0d0dde1cfe2d35.tar.gz yuzu-6e6ce2ce39b1461c0cf870f79e0d0dde1cfe2d35.tar.xz yuzu-6e6ce2ce39b1461c0cf870f79e0d0dde1cfe2d35.zip | |
core/CMakeLists: Use target_compile_definitions instead of add_definitions for specifying ENABLE_WEB_SERVICE
Avoids introducing the definition to the whole directory space and
localizes it to being added to the library that needs it.
Diffstat (limited to '')
| -rw-r--r-- | src/core/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index e4a676e91..f3b44fac0 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt | |||
| @@ -397,7 +397,7 @@ create_target_directory_groups(core) | |||
| 397 | target_link_libraries(core PUBLIC common PRIVATE audio_core video_core) | 397 | target_link_libraries(core PUBLIC common PRIVATE audio_core video_core) |
| 398 | target_link_libraries(core PUBLIC Boost::boost PRIVATE fmt lz4_static mbedtls opus unicorn open_source_archives) | 398 | target_link_libraries(core PUBLIC Boost::boost PRIVATE fmt lz4_static mbedtls opus unicorn open_source_archives) |
| 399 | if (ENABLE_WEB_SERVICE) | 399 | if (ENABLE_WEB_SERVICE) |
| 400 | add_definitions(-DENABLE_WEB_SERVICE) | 400 | target_compile_definitions(core PRIVATE -DENABLE_WEB_SERVICE) |
| 401 | target_link_libraries(core PUBLIC json-headers web_service) | 401 | target_link_libraries(core PUBLIC json-headers web_service) |
| 402 | endif() | 402 | endif() |
| 403 | 403 | ||