Skip to content

Commit 7b091a3

Browse files
authored
Removed flags that we unnecessarily impose upon the user. (#23)
1 parent c995ff7 commit 7b091a3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,6 @@ add_library(${PROJECT_NAME} INTERFACE)
1515
# via find_package + target_link_libraries straightforward.
1616
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
1717

18-
# Specify the C++ flags using target_compile_options and generator expressions for better control and compatibility
19-
target_compile_options(${PROJECT_NAME} INTERFACE
20-
$<$<CXX_COMPILER_ID:GNU>:
21-
-Wall -Wextra -Wdouble-promotion -Wconversion -O3>
22-
$<$<CXX_COMPILER_ID:Clang>:
23-
-Wall -Wextra -Wconversion -O3>
24-
$<$<CXX_COMPILER_ID:MSVC>:
25-
/W4 /O2>
26-
)
27-
2818
# Include directories for the interface target
2919
target_include_directories(${PROJECT_NAME} INTERFACE
3020
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>

0 commit comments

Comments
 (0)