From 35cc734cdcbb2c11c6f1cb7b6d0832818e741765 Mon Sep 17 00:00:00 2001 From: superp00t Date: Sun, 21 Jul 2024 23:49:11 -0400 Subject: [PATCH] style(build): fix formatting --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2d5b00a..25f7998 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.1) -if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) +if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}) message(FATAL_ERROR "In-source builds not allowed. Please make a new directory (called a build directory) and run CMake from there. @@ -32,7 +32,7 @@ include(lib/system/cmake/system.cmake) # UBsan set(WHOA_UB_SAN_HELP_TEXT, "Disable/Enable the Undefined Behavior Sanitizer. This is turned on by default in Debug build types. Has no effect when using MSVC.") -if (CMAKE_BUILD_TYPE STREQUAL "Debug") +if(CMAKE_BUILD_TYPE STREQUAL "Debug") option(WHOA_UB_SAN WHOA_UB_SAN_HELP_TEXT 1) else() option(WHOA_UB_SAN WHOA_UB_SAN_HELP_TEXT 0) @@ -40,7 +40,7 @@ endif() unset(WHOA_UB_SAN_HELP_TEXT) # GLSDL -if (WHOA_SYSTEM_WINDOWS) +if(WHOA_SYSTEM_WINDOWS) # GLSDL can be disabled on Windows to save time option(WHOA_BUILD_GLSDL "Disable/Enable compilation of the OpenGL/SDL2 graphics rendering device on Windows.", 0) elseif(WHOA_SYSTEM_MAC)