Skip to content

Commit

Permalink
Restyled by cmake-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and wirew0rm committed Dec 9, 2024
1 parent a9f078a commit 7457df6
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 7457df6

Please sign in to comment.