Skip to content

Commit

Permalink
Fix linker warnings on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Apr 7, 2018
1 parent 9724981 commit 9bc7acc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ ADD_DEPENDENCIES(stonesense generate_proto)

TARGET_LINK_LIBRARIES(stonesense protobuf-lite ${PROJECT_LIBS})

IF(MSVC)
# Ignore unhelpful warnings about debug symbols being missing.
SET_TARGET_PROPERTIES(stonesense PROPERTIES LINK_FLAGS "/ignore:4098 /ignore:4099")
ENDIF(MSVC)

IF(APPLE)
add_custom_command(TARGET stonesense POST_BUILD COMMAND ${stonesense_SOURCE_DIR}/fix-libs-stonesense.sh WORKING_DIRECTORY . COMMENT "Fixing Stonesense library dependencies...")
Expand Down

0 comments on commit 9bc7acc

Please sign in to comment.