Skip to content

Commit

Permalink
Disable missing PDBs warning on VS
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquimvila committed May 22, 2020
1 parent 8c6f119 commit 259b5a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ set(HTTP_LIB_WEBSERVER_ADAPTER_PACKAGE_TEST_PROJECT HttpLibWebServerAdapterPacka
add_executable(${HTTP_LIB_WEBSERVER_ADAPTER_PACKAGE_TEST_PROJECT} HttpLibWebServerAdapterExample.cpp)
target_link_libraries(${HTTP_LIB_WEBSERVER_ADAPTER_PACKAGE_TEST_PROJECT} HttpLibWebServerAdapter::HttpLibWebServerAdapter Threads::Threads)

# Ignored missing PDBs link warning on Visual Studio
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
set_target_properties(${HTTP_LIB_WEB_SERVER_ADAPTER_TEST_PROJECT} PROPERTIES LINK_FLAGS "/ignore:4099")
endif()

# Register tests
enable_testing()
add_test(NAME HttpLibWebServerAdapterPackageTest COMMAND ${HTTP_LIB_WEBSERVER_ADAPTER_PACKAGE_TEST_PROJECT})

0 comments on commit 259b5a4

Please sign in to comment.