Skip to content

Commit

Permalink
Fix condition to remove pthreads_cross.c from build
Browse files Browse the repository at this point in the history
  • Loading branch information
fspindle committed Oct 2, 2024
1 parent 201d1fd commit 99fa4ee
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions 3rdparty/apriltag/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ if(NOT WITH_APRILTAG_BIG_FAMILY)
vp_list_filterout(lib_hdrs tagStandard52h13.h)
endif()

if (WIN32)
if(NOT MINGW)
vp_list_filterout(lib_srcs pthreads_cross.c)
endif()
if(NOT (WIN32 AND NOT MINGW))
vp_list_filterout(lib_srcs pthreads_cross.c)
endif()

if(UNIX)
Expand Down Expand Up @@ -75,6 +73,7 @@ if(MSVC)
vp_set_source_file_compile_flag(common/pthreads_cross.c /wd4068 /wd4244)
vp_set_source_file_compile_flag(common/string_util.c /wd4018 /wd4267 /wd4996)
vp_set_source_file_compile_flag(common/time_util.c /wd4244)
vp_set_source_file_compile_flag(common/times.c /wd4244)
vp_set_source_file_compile_flag(common/workerpool.c /wd4018 /wd4244)
vp_set_source_file_compile_flag(common/zmaxheap.c /wd4098 /wd4244)
vp_set_source_file_compile_flag(apriltag.c /wd4244)
Expand All @@ -83,7 +82,7 @@ if(MSVC)
vp_set_source_file_compile_flag(tag16h5.c /wd4996 /wd4244)
vp_set_source_file_compile_flag(tag25h7.c /wd4996 /wd4244)
vp_set_source_file_compile_flag(tag25h9.c /wd4996 /wd4244)
vp_set_source_file_compile_flag(tag36h10.c /wd499 /wd42446)
vp_set_source_file_compile_flag(tag36h10.c /wd4996 /wd42446)
vp_set_source_file_compile_flag(tag36h11.c /wd4996 /wd4244)
vp_set_source_file_compile_flag(tagCircle21h7.c /wd4996 /wd4244)
# disable optimization
Expand Down

0 comments on commit 99fa4ee

Please sign in to comment.