From 0149d22385b042fb0f5edea72376e1cb8a6e3850 Mon Sep 17 00:00:00 2001 From: David Korth Date: Mon, 2 Jul 2018 13:01:16 -0400 Subject: [PATCH] Removed some more double-expansions of CMAKE_SYSTEM_NAME. --- CMakeLists.txt | 4 ++-- Source/Core/Common/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 99dec1a297..125eb278ff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,7 @@ option(OPROFILING "Enable profiling" OFF) option(DSPTOOL "Build dsptool" OFF) # Enable SDL for default on operating systems that aren't OSX, Android, Linux or Windows. -if(NOT APPLE AND NOT ANDROID AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" AND NOT MSVC) +if(NOT APPLE AND NOT ANDROID AND NOT CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT MSVC) option(ENABLE_SDL "Enables SDL as a generic controller backend" ON) else() option(ENABLE_SDL "Enables SDL as a generic controller backend" OFF) @@ -59,7 +59,7 @@ if(APPLE) option(SKIP_POSTPROCESS_BUNDLE "Skip postprocessing bundle for redistributability" OFF) endif() -if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") option(ENABLE_VTUNE "Enable Intel VTune integration for JIT code." OFF) if(NOT ANDROID) diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index 36d1018575..f93bd67efb 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -142,7 +142,7 @@ elseif(USE_X11) target_link_libraries(common PUBLIC ${XRANDR_LIBRARIES}) endif() -if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") +if(CMAKE_SYSTEM_NAME STREQUAL "Linux") target_link_libraries(common PUBLIC dl rt) endif()