[Bf-committers] cmake updates in trunk (2.49)

Dalai Felinto dfelinto at gmail.com
Tue Apr 28 06:39:55 CEST 2009


> Tried wrapping it with IF(CMAKE_BUILD_TYPE MATCHES "Debug")
> conditional?

It doesn't work. A simple check showed me that CMAKE_BUILD_TYPE is not
even set here:
  MESSAGE( STATUS "CMAKE_BUILD_TYPE: " ${CMAKE_BUILD_TYPE} )
  MESSAGE( STATUS "WIN_LIBDIR: " ${WIN_LIBDIR} ) (just to make sure
the output itself is working)

output:
1>-- CMAKE_BUILD_TYPE:
1>-- WIN_LIBDIR: C:\Blender\BF_DOME\BF_DOME\..\lib\windows

It's odd.

In fact last time I build with CMake (last year) I only needed to
manually link (i.e. rename) python25_d.lib in
[MSVC->blender->Properties->Configuration Properties->Linker->Input].
And that would be the equivalent to the changes in CMake/macros.cmake

I wonder if something else changed since then that now requires those
tweaks. (maybe my computer settings ;) but I doubt it)

Dalai

2009/4/27 GSR <gsr.b3d at infernal-iceberg.com>:
> Hi,
> dfelinto at gmail.com (2009-04-27 at 2302.27 -0300):
>> Although it works perfectly here, this change in
>> [source/creator/CMakeLists.txt] copy python_d.dll to the build folder
>> in both release and debug builds:
>> +    COMMAND copy /Y \"${WIN_LIBDIR}\\python\\lib\\python25_d.dll\"
>> \"${TARGETDIR}\\\"
>>
>> I guess this is not a good idea, so I'm wondering if anyone knows a
>> solution for that. A way to copy python25_d.dll only when in debug
>> mode.
>
> Tried wrapping it with IF(CMAKE_BUILD_TYPE MATCHES "Debug")
> conditional?
>
> GSR
>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list