From 7457df62b3444ca0d3e13540d3e9129b55e88bd5 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Mon, 9 Dec 2024 09:59:22 +0000 Subject: [PATCH] Restyled by cmake-format --- CMakeLists.txt | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f30b50b7..731eebe04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -80,8 +80,8 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "(Clang|GNU|Intel)") # Add a build type that keeps runtime checks enabled set(CMAKE_CXX_FLAGS_RELEASE - "-O2" - CACHE INTERNAL "Flags used by the compiler during release builds.") + "-O2" + CACHE INTERNAL "Flags used by the compiler during release builds.") # The default value is often an empty string, but this is usually not desirable and one of the other standard build # types is usually more appropriate. @@ -228,18 +228,17 @@ endif() # include header-only libraries that have been inlined to simplify builds w/o requiring access to the internet if(NOT (TARGET magic_enum)) add_library(magic_enum INTERFACE) - target_include_directories(magic_enum ${CMAKE_EXT_DEP_WARNING_GUARD} INTERFACE ${PROJECT_SOURCE_DIR}/third_party/magic_enum/) + target_include_directories(magic_enum ${CMAKE_EXT_DEP_WARNING_GUARD} + INTERFACE ${PROJECT_SOURCE_DIR}/third_party/magic_enum/) endif() # include exprtk header-only libraries available as a statically linked library to simplify/speed-up builds -add_library(exprtk STATIC - "${CMAKE_CURRENT_SOURCE_DIR}/third_party/exprtk.hpp" - "${CMAKE_CURRENT_SOURCE_DIR}/third_party/exprtk.cpp" # dummy source file -) -target_include_directories(exprtk PUBLIC - "${CMAKE_CURRENT_SOURCE_DIR}/third_party" - "${CMAKE_CURRENT_SOURCE_DIR}/third_party/exprtk" +add_library( + exprtk STATIC "${CMAKE_CURRENT_SOURCE_DIR}/third_party/exprtk.hpp" + "${CMAKE_CURRENT_SOURCE_DIR}/third_party/exprtk.cpp" # dummy source file ) +target_include_directories(exprtk PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/third_party" + "${CMAKE_CURRENT_SOURCE_DIR}/third_party/exprtk") target_compile_options(exprtk PRIVATE -O1) # include exprtk header-only - END