File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 5656 message (STATUS "Disabling ccache support" )
5757endif ()
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" )
Original file line number Diff line number Diff line change @@ -19,7 +19,16 @@ elseif(IS_GNU OR IS_CLANG)
1919 endif ()
2020endif ()
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+
2230include (FetchContent)
31+
2332FetchContent_Declare(poselib
2433 GIT_REPOSITORY https://github.com/PoseLib/PoseLib.git
2534 GIT_TAG f119951fca625133112acde48daffa5f20eba451
You can’t perform that action at this time.
0 commit comments