CMakeList error?

Empire-Phoenix
Posts: 24
Joined: Sat Nov 07, 2009 7:57 pm

CMakeList error?

Post by Empire-Phoenix »

Wel when using mingw unde windows, this line fails

IF (APPLE OR MSVC)
OPTION(BUILD_MULTITHREADING "Use BulletMultiThreading" ON)
ELSE()
OPTION(BUILD_MULTITHREADING "Use BulletMultiThreading" OFF)
ENDIF()

wich makes it impossible to build with mingw under windows.
Hardchanging it to On always solved makes a useable build, so I dont know why this is limited to msvc under windows. Does anyone more familiar with cmake knows how this could be done?
jdowner
Posts: 7
Joined: Fri Jan 06, 2012 1:04 pm

Re: CMakeList error?

Post by jdowner »

Sorry, I'm probably wrong on this, but doesn't that just mean that BUILD_MULTITHREADING is on by default with OSX and MSVC? So if you are using mingw you could specify that BUILD_MULTITHREADING=ON when you run cmake.

-Josh
Empire-Phoenix
Posts: 24
Joined: Sat Nov 07, 2009 7:57 pm

Re: CMakeList error?

Post by Empire-Phoenix »

Yes, but won't the else statement turn it of again then?
jdowner
Posts: 7
Joined: Fri Jan 06, 2012 1:04 pm

Re: CMakeList error?

Post by jdowner »

I don't think so. I have just been compiling on linux, where it is also off by default, and providing -DBUILD_MULTITHREADING=On from the command line works for me. Why not just try it?

-Josh