diff --git a/src/Utils/poly2ogr/CMakeLists.txt b/src/Utils/poly2ogr/CMakeLists.txt index 69e777cc..12a0e8c5 100644 --- a/src/Utils/poly2ogr/CMakeLists.txt +++ b/src/Utils/poly2ogr/CMakeLists.txt @@ -4,9 +4,13 @@ if (GDAL_FOUND) include_directories(${GDAL_INCLUDE_DIR}) add_executable(poly2ogr poly2ogr.cxx) +if(MSVC) + set (GETOPT_LIB Terra) +endif(MSVC) + target_link_libraries(poly2ogr ${GDAL_LIBRARY} - Polygon + Polygon ${GETOPT_LIB} ${SIMGEAR_CORE_LIBRARIES} ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES} )