Skip to content

Commit 9b735b3

Browse files
committed
d
1 parent 82f7592 commit 9b735b3

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ else()
5656
message(STATUS "Disabling ccache support")
5757
endif()
5858

59-
60-
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
59+
if(IS_MSVC)
6160
# Some fixes for the Glog library.
6261
add_definitions("-DGLOG_USE_GLOG_EXPORT")
6362
add_definitions("-DGLOG_NO_ABBREVIATED_SEVERITIES")

thirdparty/CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,16 @@ elseif(IS_GNU OR IS_CLANG)
1919
endif()
2020
endif()
2121

22+
if(IS_MSVC)
23+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W0")
24+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0")
25+
elseif(IS_GNU OR IS_CLANG)
26+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w")
27+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -w")
28+
endif()
29+
2230
include(FetchContent)
31+
2332
FetchContent_Declare(poselib
2433
GIT_REPOSITORY https://github.com/PoseLib/PoseLib.git
2534
GIT_TAG f119951fca625133112acde48daffa5f20eba451

0 commit comments

Comments
 (0)