Skip to content

Commit

Permalink
Removed flags that we unnecessarily impose upon the user. (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
palmerb4 authored Jun 17, 2024
1 parent c995ff7 commit 7b091a3
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,6 @@ add_library(${PROJECT_NAME} INTERFACE)
# via find_package + target_link_libraries straightforward.
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})

# Specify the C++ flags using target_compile_options and generator expressions for better control and compatibility
target_compile_options(${PROJECT_NAME} INTERFACE
$<$<CXX_COMPILER_ID:GNU>:
-Wall -Wextra -Wdouble-promotion -Wconversion -O3>
$<$<CXX_COMPILER_ID:Clang>:
-Wall -Wextra -Wconversion -O3>
$<$<CXX_COMPILER_ID:MSVC>:
/W4 /O2>
)

# Include directories for the interface target
target_include_directories(${PROJECT_NAME} INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
Expand Down

0 comments on commit 7b091a3

Please sign in to comment.