Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [solved] CMake not outputting static build files for VS2005  (Read 1403 times)

0 Members and 1 Guest are viewing this topic.

nullpointer

  • Newbie
  • *
  • Posts: 8
    • View Profile
[solved] CMake not outputting static build files for VS2005
« on: March 12, 2013, 10:58:07 pm »
CMake is not outputting static build files for VS2005. I unchecked BUILD_SHARED_LIBS and the resulting project files are identical to the ones where that option is checked, and thus the resulting project files only build the shared libs.
« Last Edit: March 13, 2013, 12:01:23 am by nullpointer »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: CMake not outputting static build files for VS2005
« Reply #1 on: March 12, 2013, 11:05:37 pm »
I very strongly recommend to switch to VS12 or at least VS10. There's nearly no reason why one would want to stick to such an outdated version of VS... :-\

As for why it doesn't produce static libraries, I'm puzzled, but I'd guess it has something to do with the old version not yet supporting something.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

nullpointer

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: CMake not outputting static build files for VS2005
« Reply #2 on: March 12, 2013, 11:21:25 pm »
I have my reasons for sticking with VS2005. And I use a lot of libraries, and none of them care what version of VS I use, including those that use CMake. That's the whole point of CMake, I thought.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: CMake not outputting static build files for VS2005
« Reply #3 on: March 12, 2013, 11:28:47 pm »
Well then it's time to debug some CMake stuff. ;)
You can add some message("Test") statements in e.g. cmake/Macros.cmake to see if the static building thingy gets executed.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

nullpointer

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: CMake not outputting static build files for VS2005
« Reply #4 on: March 12, 2013, 11:47:26 pm »
I can't find anything wrong in the CMake files, they're pretty straightforward. Now that I'm triple-checking everything, I think cmake-gui got messed up somehow when I mistyped a directory name. I'm going to try running it one more time...

nullpointer

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: CMake not outputting static build files for VS2005
« Reply #5 on: March 12, 2013, 11:55:44 pm »
There we go. It was cmake-gui's fault. Thanks for your attention.

PS. The Graphics module doesn't compile in VS2005 due to one of the precompiled .lib dependencies, but I don't need that module.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: [solved] CMake not outputting static build files for VS2005
« Reply #6 on: March 13, 2013, 07:47:37 am »
Quote
The Graphics module doesn't compile in VS2005 due to one of the precompiled .lib dependencies
Do you know which one?
Are you using the latest sources?
Laurent Gomila - SFML developer