Skip to content

Commit

Permalink
Fixed Error: Unresolved External Symbol opendir, closedir, readdir in…
Browse files Browse the repository at this point in the history
… gis module
  • Loading branch information
Mahesh1998 committed Sep 23, 2024
1 parent 39d5459 commit 8dd47c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ endif()
set(grass_gis_DEFS "-DGRASS_VERSION_DATE=\"${GRASS_VERSION_DATE}\"")
if(MSVC)
set(grass_gis_DEFS "${grass_gis_DEFS};-D_USE_MATH_DEFINES=1")
set(gislib_INCLUDES "../../msvc")
list(APPEND gislib_SRCS "../../msvc/dirent.c")
endif()

build_module(
NAME
grass_gis
INCLUDES
${gislib_INCLUDES}
SOURCES
"${gislib_SRCS}"
DEPENDS
Expand Down

0 comments on commit 8dd47c9

Please sign in to comment.