VC++ compilation
This commit is contained in:
@@ -16,7 +16,9 @@ option(AUTOSWITCH "Automatic switch detection in menus" ON)
|
|||||||
|
|
||||||
set(OPT s)
|
set(OPT s)
|
||||||
|
|
||||||
|
if (NOT MSVC)
|
||||||
enable_language(ASM)
|
enable_language(ASM)
|
||||||
|
endif()
|
||||||
|
|
||||||
set(THIRDPARTY_DIR thirdparty)
|
set(THIRDPARTY_DIR thirdparty)
|
||||||
set(LUA_DIR ${THIRDPARTY_DIR}/Lua/src)
|
set(LUA_DIR ${THIRDPARTY_DIR}/Lua/src)
|
||||||
@@ -657,6 +659,7 @@ endif()
|
|||||||
|
|
||||||
set(SRC ${SRC} ${FIRMWARE_SRC})
|
set(SRC ${SRC} ${FIRMWARE_SRC})
|
||||||
|
|
||||||
|
if(NOT MSVC)
|
||||||
include(CMakeForceCompiler)
|
include(CMakeForceCompiler)
|
||||||
|
|
||||||
set(WARNING_FLAGS "-Wall -Wno-strict-aliasing -Wformat -Wreturn-type -Wunused -Wuninitialized -Wunknown-pragmas -Wno-switch -Wtype-limits")
|
set(WARNING_FLAGS "-Wall -Wno-strict-aliasing -Wformat -Wreturn-type -Wunused -Wuninitialized -Wunknown-pragmas -Wno-switch -Wtype-limits")
|
||||||
@@ -744,4 +747,4 @@ if(CPU_FAMILY STREQUAL STM32)
|
|||||||
DEPENDS firmware.bin
|
DEPENDS firmware.bin
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user