{"action":"created","comment":{"url":"https://api.github.com/repos/simbody/simbody/pulls/comments/23359665","id":23359665,"diff_hunk":"@@ -451,25 +451,26 @@ IF(BUILD_USING_OTHER_LAPACK)\n \"Basename of the actual Lapack library we're depending on; can't change here; see variable BUILD_USING_OTHER_LAPACK.\" FORCE)\n ENDIF(BUILD_USING_OTHER_LAPACK)\n \n-IF(${CMAKE_C_COMPILER} MATCHES \"cc\" OR ${CMAKE_CXX_COMPILER_ID} MATCHES \"Clang\")\n-    IF(APPLE)\n-        SET(REALTIME_LIB)\n-    ELSE()\n+IF(UNIX)\n+    IF(NOT APPLE)\n         SET(REALTIME_LIB rt)\n     ENDIF()\n-    SET(MATH_LIBS_TO_USE    ${LAPACK_BEING_USED} pthread ${REALTIME_LIB} dl m)\n-    SET(MATH_LIBS_TO_USE_VN ${LAPACK_BEING_USED} pthread ${REALTIME_LIB} dl m)\n-ELSE()\n+    SET(MATH_LIBRARY m)\n+    SET(DL_LIBRARY dl)\n+    SET(CMAKE_THREAD_LIBS_INIT pthread)\n+ENDIF()\n+\n+IF(MSVC)\n     ## Assume Microsoft Visual Studio\n     if (${PLATFORM_ABI} MATCHES \"x64\")\n-        SET(MATH_LIBS_TO_USE    ${LAPACK_BEING_USED} pthreadVC2_x64)\n-        SET(MATH_LIBS_TO_USE_VN ${LAPACK_BEING_USED} pthreadVC2_x64)\n+        SET(CMAKE_THREAD_LIBS_INIT pthreadVC2_x64)\n     else()\n-        SET(MATH_LIBS_TO_USE    ${LAPACK_BEING_USED} pthreadVC2)\n-        SET(MATH_LIBS_TO_USE_VN ${LAPACK_BEING_USED} pthreadVC2)\n+        SET(CMAKE_THREAD_LIBS_INIT pthreadVC2)\n     endif()\n ENDIF()\n \n+SET(MATH_LIBS_TO_USE    ${LAPACK_BEING_USED} ${CMAKE_THREAD_LIBS_INIT} ${REALTIME_LIB} ${DL_LIBRARY} ${MATH_LIBRARY})","path":"CMakeLists.txt","position":33,"original_position":33,"commit_id":"a94205679ff74fbe0243404f0d16464900656621","original_commit_id":"a94205679ff74fbe0243404f0d16464900656621","user":{"login":"xantares","id":3265815,"avatar_url":"https://avatars.githubusercontent.com/u/3265815?v=3","gravatar_id":"","url":"https://api.github.com/users/xantares","html_url":"https://github.com/xantares","followers_url":"https://api.github.com/users/xantares/followers","following_url":"https://api.github.com/users/xantares/following{/other_user}","gists_url":"https://api.github.com/users/xantares/gists{/gist_id}","starred_url":"https://api.github.com/users/xantares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xantares/subscriptions","organizations_url":"https://api.github.com/users/xantares/orgs","repos_url":"https://api.github.com/users/xantares/repos","events_url":"https://api.github.com/users/xantares/events{/privacy}","received_events_url":"https://api.github.com/users/xantares/received_events","type":"User","site_admin":false},"body":"yep","created_at":"2015-01-22T07:50:47Z","updated_at":"2015-01-22T07:50:47Z","html_url":"https://github.com/simbody/simbody/pull/330#discussion_r23359665","pull_request_url":"https://api.github.com/repos/simbody/simbody/pulls/330","_links":{"self":{"href":"https://api.github.com/repos/simbody/simbody/pulls/comments/23359665"},"html":{"href":"https://github.com/simbody/simbody/pull/330#discussion_r23359665"},"pull_request":{"href":"https://api.github.com/repos/simbody/simbody/pulls/330"}}},"pull_request":{"url":"https://api.github.com/repos/simbody/simbody/pulls/330","id":27797022,"html_url":"https://github.com/simbody/simbody/pull/330","diff_url":"https://github.com/simbody/simbody/pull/330.diff","patch_url":"https://github.com/simbody/simbody/pull/330.patch","issue_url":"https://api.github.com/repos/simbody/simbody/issues/330","number":330,"state":"open","locked":false,"title":"Mingw","user":{"login":"xantares","id":3265815,"avatar_url":"https://avatars.githubusercontent.com/u/3265815?v=3","gravatar_id":"","url":"https://api.github.com/users/xantares","html_url":"https://github.com/xantares","followers_url":"https://api.github.com/users/xantares/followers","following_url":"https://api.github.com/users/xantares/following{/other_user}","gists_url":"https://api.github.com/users/xantares/gists{/gist_id}","starred_url":"https://api.github.com/users/xantares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xantares/subscriptions","organizations_url":"https://api.github.com/users/xantares/orgs","repos_url":"https://api.github.com/users/xantares/repos","events_url":"https://api.github.com/users/xantares/events{/privacy}","received_events_url":"https://api.github.com/users/xantares/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-21T21:36:33Z","updated_at":"2015-01-22T07:50:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c71c43d36bc573710d3abeb5b4e997e2575662cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/simbody/simbody/pulls/330/commits","review_comments_url":"https://api.github.com/repos/simbody/simbody/pulls/330/comments","review_comment_url":"https://api.github.com/repos/simbody/simbody/pulls/comments/{number}","comments_url":"https://api.github.com/repos/simbody/simbody/issues/330/comments","statuses_url":"https://api.github.com/repos/simbody/simbody/statuses/a94205679ff74fbe0243404f0d16464900656621","head":{"label":"xantares:mingw","ref":"mingw","sha":"a94205679ff74fbe0243404f0d16464900656621","user":{"login":"xantares","id":3265815,"avatar_url":"https://avatars.githubusercontent.com/u/3265815?v=3","gravatar_id":"","url":"https://api.github.com/users/xantares","html_url":"https://github.com/xantares","followers_url":"https://api.github.com/users/xantares/followers","following_url":"https://api.github.com/users/xantares/following{/other_user}","gists_url":"https://api.github.com/users/xantares/gists{/gist_id}","starred_url":"https://api.github.com/users/xantares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xantares/subscriptions","organizations_url":"https://api.github.com/users/xantares/orgs","repos_url":"https://api.github.com/users/xantares/repos","events_url":"https://api.github.com/users/xantares/events{/privacy}","received_events_url":"https://api.github.com/users/xantares/received_events","type":"User","site_admin":false},"repo":{"id":29605081,"name":"simbody","full_name":"xantares/simbody","owner":{"login":"xantares","id":3265815,"avatar_url":"https://avatars.githubusercontent.com/u/3265815?v=3","gravatar_id":"","url":"https://api.github.com/users/xantares","html_url":"https://github.com/xantares","followers_url":"https://api.github.com/users/xantares/followers","following_url":"https://api.github.com/users/xantares/following{/other_user}","gists_url":"https://api.github.com/users/xantares/gists{/gist_id}","starred_url":"https://api.github.com/users/xantares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xantares/subscriptions","organizations_url":"https://api.github.com/users/xantares/orgs","repos_url":"https://api.github.com/users/xantares/repos","events_url":"https://api.github.com/users/xantares/events{/privacy}","received_events_url":"https://api.github.com/users/xantares/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xantares/simbody","description":"High-performance C++ multibody dynamics/physics library for simulating articulated biomechanical and mechanical systems like vehicles, robots, and the human skeleton.","fork":true,"url":"https://api.github.com/repos/xantares/simbody","forks_url":"https://api.github.com/repos/xantares/simbody/forks","keys_url":"https://api.github.com/repos/xantares/simbody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xantares/simbody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xantares/simbody/teams","hooks_url":"https://api.github.com/repos/xantares/simbody/hooks","issue_events_url":"https://api.github.com/repos/xantares/simbody/issues/events{/number}","events_url":"https://api.github.com/repos/xantares/simbody/events","assignees_url":"https://api.github.com/repos/xantares/simbody/assignees{/user}","branches_url":"https://api.github.com/repos/xantares/simbody/branches{/branch}","tags_url":"https://api.github.com/repos/xantares/simbody/tags","blobs_url":"https://api.github.com/repos/xantares/simbody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xantares/simbody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xantares/simbody/git/refs{/sha}","trees_url":"https://api.github.com/repos/xantares/simbody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xantares/simbody/statuses/{sha}","languages_url":"https://api.github.com/repos/xantares/simbody/languages","stargazers_url":"https://api.github.com/repos/xantares/simbody/stargazers","contributors_url":"https://api.github.com/repos/xantares/simbody/contributors","subscribers_url":"https://api.github.com/repos/xantares/simbody/subscribers","subscription_url":"https://api.github.com/repos/xantares/simbody/subscription","commits_url":"https://api.github.com/repos/xantares/simbody/commits{/sha}","git_commits_url":"https://api.github.com/repos/xantares/simbody/git/commits{/sha}","comments_url":"https://api.github.com/repos/xantares/simbody/comments{/number}","issue_comment_url":"https://api.github.com/repos/xantares/simbody/issues/comments/{number}","contents_url":"https://api.github.com/repos/xantares/simbody/contents/{+path}","compare_url":"https://api.github.com/repos/xantares/simbody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xantares/simbody/merges","archive_url":"https://api.github.com/repos/xantares/simbody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xantares/simbody/downloads","issues_url":"https://api.github.com/repos/xantares/simbody/issues{/number}","pulls_url":"https://api.github.com/repos/xantares/simbody/pulls{/number}","milestones_url":"https://api.github.com/repos/xantares/simbody/milestones{/number}","notifications_url":"https://api.github.com/repos/xantares/simbody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xantares/simbody/labels{/name}","releases_url":"https://api.github.com/repos/xantares/simbody/releases{/id}","created_at":"2015-01-21T18:40:17Z","updated_at":"2015-01-21T18:40:23Z","pushed_at":"2015-01-21T21:36:22Z","git_url":"git://github.com/xantares/simbody.git","ssh_url":"git@github.com:xantares/simbody.git","clone_url":"https://github.com/xantares/simbody.git","svn_url":"https://github.com/xantares/simbody","homepage":"https://simtk.org/home/simbody","size":190384,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"simbody:master","ref":"master","sha":"ac64e550597212b9ac3a426fd734d8c9233f39fb","user":{"login":"simbody","id":5199961,"avatar_url":"https://avatars.githubusercontent.com/u/5199961?v=3","gravatar_id":"","url":"https://api.github.com/users/simbody","html_url":"https://github.com/simbody","followers_url":"https://api.github.com/users/simbody/followers","following_url":"https://api.github.com/users/simbody/following{/other_user}","gists_url":"https://api.github.com/users/simbody/gists{/gist_id}","starred_url":"https://api.github.com/users/simbody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simbody/subscriptions","organizations_url":"https://api.github.com/users/simbody/orgs","repos_url":"https://api.github.com/users/simbody/repos","events_url":"https://api.github.com/users/simbody/events{/privacy}","received_events_url":"https://api.github.com/users/simbody/received_events","type":"Organization","site_admin":false},"repo":{"id":12146969,"name":"simbody","full_name":"simbody/simbody","owner":{"login":"simbody","id":5199961,"avatar_url":"https://avatars.githubusercontent.com/u/5199961?v=3","gravatar_id":"","url":"https://api.github.com/users/simbody","html_url":"https://github.com/simbody","followers_url":"https://api.github.com/users/simbody/followers","following_url":"https://api.github.com/users/simbody/following{/other_user}","gists_url":"https://api.github.com/users/simbody/gists{/gist_id}","starred_url":"https://api.github.com/users/simbody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simbody/subscriptions","organizations_url":"https://api.github.com/users/simbody/orgs","repos_url":"https://api.github.com/users/simbody/repos","events_url":"https://api.github.com/users/simbody/events{/privacy}","received_events_url":"https://api.github.com/users/simbody/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simbody/simbody","description":"High-performance C++ multibody dynamics/physics library for simulating articulated biomechanical and mechanical systems like vehicles, robots, and the human skeleton.","fork":false,"url":"https://api.github.com/repos/simbody/simbody","forks_url":"https://api.github.com/repos/simbody/simbody/forks","keys_url":"https://api.github.com/repos/simbody/simbody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simbody/simbody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simbody/simbody/teams","hooks_url":"https://api.github.com/repos/simbody/simbody/hooks","issue_events_url":"https://api.github.com/repos/simbody/simbody/issues/events{/number}","events_url":"https://api.github.com/repos/simbody/simbody/events","assignees_url":"https://api.github.com/repos/simbody/simbody/assignees{/user}","branches_url":"https://api.github.com/repos/simbody/simbody/branches{/branch}","tags_url":"https://api.github.com/repos/simbody/simbody/tags","blobs_url":"https://api.github.com/repos/simbody/simbody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simbody/simbody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simbody/simbody/git/refs{/sha}","trees_url":"https://api.github.com/repos/simbody/simbody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simbody/simbody/statuses/{sha}","languages_url":"https://api.github.com/repos/simbody/simbody/languages","stargazers_url":"https://api.github.com/repos/simbody/simbody/stargazers","contributors_url":"https://api.github.com/repos/simbody/simbody/contributors","subscribers_url":"https://api.github.com/repos/simbody/simbody/subscribers","subscription_url":"https://api.github.com/repos/simbody/simbody/subscription","commits_url":"https://api.github.com/repos/simbody/simbody/commits{/sha}","git_commits_url":"https://api.github.com/repos/simbody/simbody/git/commits{/sha}","comments_url":"https://api.github.com/repos/simbody/simbody/comments{/number}","issue_comment_url":"https://api.github.com/repos/simbody/simbody/issues/comments/{number}","contents_url":"https://api.github.com/repos/simbody/simbody/contents/{+path}","compare_url":"https://api.github.com/repos/simbody/simbody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simbody/simbody/merges","archive_url":"https://api.github.com/repos/simbody/simbody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simbody/simbody/downloads","issues_url":"https://api.github.com/repos/simbody/simbody/issues{/number}","pulls_url":"https://api.github.com/repos/simbody/simbody/pulls{/number}","milestones_url":"https://api.github.com/repos/simbody/simbody/milestones{/number}","notifications_url":"https://api.github.com/repos/simbody/simbody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simbody/simbody/labels{/name}","releases_url":"https://api.github.com/repos/simbody/simbody/releases{/id}","created_at":"2013-08-16T00:21:53Z","updated_at":"2015-01-20T22:41:52Z","pushed_at":"2015-01-20T19:10:29Z","git_url":"git://github.com/simbody/simbody.git","ssh_url":"git@github.com:simbody/simbody.git","clone_url":"https://github.com/simbody/simbody.git","svn_url":"https://github.com/simbody/simbody","homepage":"https://simtk.org/home/simbody","size":190384,"stargazers_count":228,"watchers_count":228,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":98,"mirror_url":null,"open_issues_count":58,"forks":98,"open_issues":58,"watchers":228,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simbody/simbody/pulls/330"},"html":{"href":"https://github.com/simbody/simbody/pull/330"},"issue":{"href":"https://api.github.com/repos/simbody/simbody/issues/330"},"comments":{"href":"https://api.github.com/repos/simbody/simbody/issues/330/comments"},"review_comments":{"href":"https://api.github.com/repos/simbody/simbody/pulls/330/comments"},"review_comment":{"href":"https://api.github.com/repos/simbody/simbody/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/simbody/simbody/pulls/330/commits"},"statuses":{"href":"https://api.github.com/repos/simbody/simbody/statuses/a94205679ff74fbe0243404f0d16464900656621"}}}}