File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ project(librecomp)
44set (CMAKE_CXX_STANDARD 20)
55set (CMAKE_CXX_STANDARD_REQUIRED True )
66set (CMAKE_CXX_EXTENSIONS OFF )
7+ set (CMAKE_C_STANDARD 11)
78
89# Define the library
910add_library (librecomp STATIC
@@ -46,11 +47,13 @@ target_include_directories(librecomp PRIVATE
4647 "${CMAKE_CURRENT_SOURCE_DIR} /include/librecomp"
4748)
4849
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 ()
5457
5558if (WIN32 )
5659 add_compile_definitions (NOMINMAX )
Original file line number Diff line number Diff line change @@ -29,11 +29,13 @@ target_include_directories(ultramodern PUBLIC
2929 "${PROJECT_SOURCE_DIR} /../thirdparty/sse2neon"
3030)
3131
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 ()
3739
3840if (WIN32 )
3941 add_compile_definitions (NOMINMAX )
You can’t perform that action at this time.
0 commit comments