{"action":"created","issue":{"url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/51","labels_url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/51/comments","events_url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/51/events","html_url":"https://github.com/OpenMAMA/OpenMAMA/issues/51","id":111587317,"number":51,"title":"Default search path for gtest-md 1.7.0 libraries","user":{"login":"adriennea","id":14275235,"avatar_url":"https://avatars.githubusercontent.com/u/14275235?v=3","gravatar_id":"","url":"https://api.github.com/users/adriennea","html_url":"https://github.com/adriennea","followers_url":"https://api.github.com/users/adriennea/followers","following_url":"https://api.github.com/users/adriennea/following{/other_user}","gists_url":"https://api.github.com/users/adriennea/gists{/gist_id}","starred_url":"https://api.github.com/users/adriennea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriennea/subscriptions","organizations_url":"https://api.github.com/users/adriennea/orgs","repos_url":"https://api.github.com/users/adriennea/repos","events_url":"https://api.github.com/users/adriennea/events{/privacy}","received_events_url":"https://api.github.com/users/adriennea/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-15T10:20:57Z","updated_at":"2015-10-15T10:21:35Z","closed_at":null,"body":"Replacing [RB-126] (http://bugs.openmama.org/show_bug.cgi?id=126)\r\n\r\nDefault x64 and Win32 builds of gtest-md are in different location.\r\nAnd the search path in the unit-test MainUnitTestC does not reflect that.\r\n\r\nProposed solution for gtest-md 1.7.0:\r\n\r\nI suggest to add the following paths to the property sheet of the project:\r\n\r\nGTEST_HOME is where the gtest is extracted.\r\n\r\nIn Property Pages -> Configuration Properties -> Linker -> General -> Addition\r\nLibrary Directories should add:\r\nWin32|Debug:   $(GTEST_HOME)\\msvc\\gtest-md\\Debug\r\nWin32|Release: $(GTEST_HOME)\\msvc\\gtest-md\\Release\r\nx64|Debug:     $(GTEST_HOME)\\msvc\\x64\\Debug\r\nx64|Release:   $(GTEST_HOME)\\msvc\\x64\\Release\r\n\r\nI also suggest to make sure in the Wiki for visual studio that people build the\r\ngtest-md (or gtest) in the following specific way to avoid confusion:\r\n\r\nDo not build with CMake. for VS use the solution in: \r\n   %GTEST_HOME%\\msvc\\gtest-md.sln\r\n\r\nCreate x64 configuration. In configuration Manager create new platform and copy\r\nits configuration from Win32\r\n\r\nIn gtest-md Property Pages -> Configuration Properties -> C/C++ -> Code\r\nGeneration -> Runtime Library should be:\r\n* For Debug:   Multi-threaded Debug (/MTd)\r\n* For Release: Multi-threaded (/MT)\r\n\r\nBuild all platforms and configuration of gtest-md"},"comment":{"url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/comments/148344104","html_url":"https://github.com/OpenMAMA/OpenMAMA/issues/51#issuecomment-148344104","issue_url":"https://api.github.com/repos/OpenMAMA/OpenMAMA/issues/51","id":148344104,"user":{"login":"adriennea","id":14275235,"avatar_url":"https://avatars.githubusercontent.com/u/14275235?v=3","gravatar_id":"","url":"https://api.github.com/users/adriennea","html_url":"https://github.com/adriennea","followers_url":"https://api.github.com/users/adriennea/followers","following_url":"https://api.github.com/users/adriennea/following{/other_user}","gists_url":"https://api.github.com/users/adriennea/gists{/gist_id}","starred_url":"https://api.github.com/users/adriennea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adriennea/subscriptions","organizations_url":"https://api.github.com/users/adriennea/orgs","repos_url":"https://api.github.com/users/adriennea/repos","events_url":"https://api.github.com/users/adriennea/events{/privacy}","received_events_url":"https://api.github.com/users/adriennea/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T10:21:34Z","updated_at":"2015-10-15T10:21:34Z","body":"It is also worth to mention that the user should add _VARIADIC_MAX=10 to\r\npreprocessor defines both on the gtest build and on each unit-test project. it\r\nis essential for compatibility with vs 2012/2013 and I think also VS 2010."}}