Skip to content

Commit 6a0c550

Browse files
gcuendet-cognexgcuendet
authored andcommitted
Fix CMake for windows
- Add /wd4067 to silence a warning from pytorch include/c10/macros/Macros.h l.142 - Add /permissive- flag that specifies standards conformance mode to the compiler and allow to use `and` alternative operator for && in core/conversion/converteres/impl/activation.cpp Signed-off-by: Gabriel Cuendet <[email protected]>
1 parent cc961f4 commit 6a0c550

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
1111
include(cmake/dependencies.cmake)
1212
include(cmake/paths.cmake)
1313
if(MSVC)
14-
# warning level 4 and all warnings as errors
15-
add_compile_options(/wd4624)
14+
add_compile_options(/wd4624 /wd4067 /permissive-)
1615
endif()
1716
# -----------------------------------------
1817
# compilation

0 commit comments

Comments
 (0)