[Insight-developers] SimpleITK - CMake question (The Saga of Eggs on Windows…)

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Sat Sep 17 17:07:36 EDT 2011


Hi Bradley,

I am assuming you want the variable to be substituted at build time ...

Instead of ${Configure} .. try with ${CMAKE_CFG_INTDIR}

See
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#variable:CMAKE_CFG_INTDIR

Hth
Jc

On Sat, Sep 17, 2011 at 2:59 PM, Bradley Lowekamp <blowekamp at mail.nih.gov>wrote:

> Hello,
>
> There is a cmake variable which is having the following value:
> "C:Build/SimpleITK/lib/$(Configure)/_SimpleITK.pyd"
>
> And is needs to be:
> "C:Build/SimpleITK/lib/Release/_SimpleITK.pyd"
>
> I can finally get the python egg for distribution on windows system, But
> for some reason the "Configure" is not being substituted as needed.
>
> Here is some other CMake snippets relevant:
>
> # from SimpleITK/CMAKE/UseSWIGLocal.cmake
> ...
> ADD_LIBRARY(${SWIG_MODULE_${name}_REAL_NAME}
>    MODULE
>    ${swig_generated_sources}
>    ${swig_other_sources})
> ...
>
> # from SimpleITK/Wrapping/CMakeLists.txt
> ..
>  get_target_property( SIMPLEITK_BINARY_MODULE
>    ${SWIG_MODULE_SimpleITK_REAL_NAME} LOCATION )
>  configure_file( ${SimpleITK_SOURCE_DIR}/Wrapping/PythonPackage/
> setup.py.in
>    ${SimpleITK_BINARY_DIR}/Wrapping/PythonPackage/setup.py )
>>
>
> Any help would be appreciated.
>
> Thanks,
> Brad
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-developers
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110917/09ca4015/attachment.htm>


More information about the Insight-developers mailing list