{"id":2641,"date":"2012-12-24T15:13:24","date_gmt":"2012-12-24T05:13:24","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=2641"},"modified":"2012-12-24T15:13:24","modified_gmt":"2012-12-24T05:13:24","slug":"minor-cmake-issue","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2012\/12\/24\/minor-cmake-issue\/","title":{"rendered":"Minor cmake issue"},"content":{"rendered":"
As a quick warning to anyone who might be looking at the VectorStorm codebase, as of cmake version 2.8.10 (or thereabouts), the variables describing where to find SDL_mixer and SDL_image have changed from SDLMIXER_* and SDLIMAGE_* to SDL_MIXER_* and SDL_IMAGE_*, respectively.\u00a0 Which caused me a good fifteen minutes of confusion before I was able to work out where my linker errors were coming from.<\/p>\n
I like the new variable names a lot more than the old ones; smashing the words together always seemed like a strange choice.\u00a0 But this sort of breaking change to the exposed interface is really disappointing.\u00a0 Now I need to figure out what I’m going to do with VectorStorm’s build configuration to allow people (ie: me) to do builds with either new or old builds of cmake.\u00a0 Or else I have to just mandate that everyone update.\u00a0 Maybe I need some build conditionals to check which variables have been set, and work around the thing.<\/p>\n
Will post here when I figure out a reasonable solution.\u00a0 For now, if you’re using cmake 2.8.10, you’ll need to change the names of those variables in the CMakelists.txt files.<\/p>\n","protected":false},"excerpt":{"rendered":"
As a quick warning to anyone who might be looking at the VectorStorm codebase, as of cmake version 2.8.10 (or thereabouts), the variables describing where to find SDL_mixer and SDL_image have changed from SDLMIXER_* and SDLIMAGE_* to SDL_MIXER_* and SDL_IMAGE_*, respectively.\u00a0 Which caused me a good fifteen minutes of confusion before I was able to…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[7,3],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-GB","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/2641"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=2641"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/2641\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=2641"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=2641"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=2641"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}