File tree 2 files changed +15
-10
lines changed
2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ project(librecomp)
4
4
set (CMAKE_CXX_STANDARD 20)
5
5
set (CMAKE_CXX_STANDARD_REQUIRED True )
6
6
set (CMAKE_CXX_EXTENSIONS OFF )
7
+ set (CMAKE_C_STANDARD 11)
7
8
8
9
# Define the library
9
10
add_library (librecomp STATIC
@@ -46,11 +47,13 @@ target_include_directories(librecomp PRIVATE
46
47
"${CMAKE_CURRENT_SOURCE_DIR} /include/librecomp"
47
48
)
48
49
49
- target_compile_options (librecomp PRIVATE
50
- # -Wall
51
- # -Wextra
52
- -Wno-unused-parameter
53
- )
50
+ if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
51
+ target_compile_options (ultramodern PRIVATE
52
+ # -Wall
53
+ # -Wextra
54
+ -Wno-unused-parameter
55
+ )
56
+ endif ()
54
57
55
58
if (WIN32 )
56
59
add_compile_definitions (NOMINMAX)
Original file line number Diff line number Diff line change @@ -29,11 +29,13 @@ target_include_directories(ultramodern PUBLIC
29
29
"${PROJECT_SOURCE_DIR} /../thirdparty/sse2neon"
30
30
)
31
31
32
- target_compile_options (ultramodern PRIVATE
33
- # -Wall
34
- # -Wextra
35
- -Wno-unused-parameter
36
- )
32
+ if (NOT CMAKE_CXX_COMPILER_ID STREQUAL "MSVC" )
33
+ target_compile_options (ultramodern PRIVATE
34
+ # -Wall
35
+ # -Wextra
36
+ -Wno-unused-parameter
37
+ )
38
+ endif ()
37
39
38
40
if (WIN32 )
39
41
add_compile_definitions (NOMINMAX)
You can’t perform that action at this time.
0 commit comments