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

Bradley Lowekamp blowekamp at mail.nih.gov
Sat Sep 17 14:59:00 EDT 2011


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



More information about the Insight-developers mailing list