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

Author Topic: CMake configuration problem?  (Read 1257 times)

0 Members and 3 Guests are viewing this topic.

xmarv

  • Newbie
  • *
  • Posts: 4
    • View Profile
CMake configuration problem?
« on: March 13, 2012, 10:25:09 pm »
Hi,

I've created the SFML (latest revision) project files using CMake and the options BUILD_SHARED_LIBS=disabled and STATIC_STD_LIBS=enabled.

For more details, check this screenshot of the generator:


When I compile the project files, I still get DLLs and nothing with an "-s" in the name. Can someone tell me what I have missed?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
CMake configuration problem?
« Reply #1 on: March 13, 2012, 10:33:10 pm »
Have you tried with the "NMake makefiles" generator instead of Visual Studio?
Laurent Gomila - SFML developer

xmarv

  • Newbie
  • *
  • Posts: 4
    • View Profile
CMake configuration problem?
« Reply #2 on: March 13, 2012, 10:34:09 pm »
Not yet, I guess I'll need to have NMake installed for that.. I'll try it out.
But why isn't it working the easy way? :P

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
CMake configuration problem?
« Reply #3 on: March 13, 2012, 10:40:40 pm »
NMake is the make program of Visual C++. It is already installed ;)

Quote
But why isn't it working the easy way?

It's just a way to test if you did something wrong, or if there's a bug in the SFML makefiles (I never test with the Visual Studio generator).

By the way, nmake (or any other make program) is the easy way for compiling something. IDEs are good for editing; but for compiling, the command line is all you need.
Laurent Gomila - SFML developer

xmarv

  • Newbie
  • *
  • Posts: 4
    • View Profile
CMake configuration problem?
« Reply #4 on: March 13, 2012, 10:47:16 pm »
Ok, it gives the same result with less compiling-garbage-files. I executed "nmake" within the folder where the Makefile was created by CMake. (no additional parameters)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
CMake configuration problem?
« Reply #5 on: March 13, 2012, 10:53:46 pm »
Ok, so you're doing something wrong.

Did you click Configure again after changing the CMake options?
Laurent Gomila - SFML developer

xmarv

  • Newbie
  • *
  • Posts: 4
    • View Profile
CMake configuration problem?
« Reply #6 on: March 13, 2012, 10:54:10 pm »
No, thanks for the information :)

It does now produce the correct result.

 

anything