diff options
| author | 2021-01-23 04:15:27 -0300 | |
|---|---|---|
| committer | 2021-01-23 04:15:30 -0300 | |
| commit | 966896daadc50fbdce239bb34c76534ad0db7c68 (patch) | |
| tree | 69b36736724fa30c256df5e1b50d3ab291bffcf6 /src | |
| parent | nsight_aftermath_tracker: Fix build issues when enabled (diff) | |
| download | yuzu-966896daadc50fbdce239bb34c76534ad0db7c68.tar.gz yuzu-966896daadc50fbdce239bb34c76534ad0db7c68.tar.xz yuzu-966896daadc50fbdce239bb34c76534ad0db7c68.zip | |
video_core/cmake: Properly generate fatal errors on Aftermath
Fix "message(ERROR ..." to "message(FATAL_ERROR ..." to properly stop
cmake when Nsight Aftermath can't be configured.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/CMakeLists.txt b/src/video_core/CMakeLists.txt index e01ea55ab..bb1f8491f 100644 --- a/src/video_core/CMakeLists.txt +++ b/src/video_core/CMakeLists.txt | |||
| @@ -288,10 +288,10 @@ target_link_libraries(video_core PRIVATE sirit) | |||
| 288 | 288 | ||
| 289 | if (ENABLE_NSIGHT_AFTERMATH) | 289 | if (ENABLE_NSIGHT_AFTERMATH) |
| 290 | if (NOT DEFINED ENV{NSIGHT_AFTERMATH_SDK}) | 290 | if (NOT DEFINED ENV{NSIGHT_AFTERMATH_SDK}) |
| 291 | message(ERROR "Environment variable NSIGHT_AFTERMATH_SDK has to be provided") | 291 | message(FATAL_ERROR "Environment variable NSIGHT_AFTERMATH_SDK has to be provided") |
| 292 | endif() | 292 | endif() |
| 293 | if (NOT WIN32) | 293 | if (NOT WIN32) |
| 294 | message(ERROR "Nsight Aftermath doesn't support non-Windows platforms") | 294 | message(FATAL_ERROR "Nsight Aftermath doesn't support non-Windows platforms") |
| 295 | endif() | 295 | endif() |
| 296 | target_compile_definitions(video_core PRIVATE HAS_NSIGHT_AFTERMATH) | 296 | target_compile_definitions(video_core PRIVATE HAS_NSIGHT_AFTERMATH) |
| 297 | target_include_directories(video_core PRIVATE "$ENV{NSIGHT_AFTERMATH_SDK}/include") | 297 | target_include_directories(video_core PRIVATE "$ENV{NSIGHT_AFTERMATH_SDK}/include") |