[ITK] ITK: "BUILD_SHARED_LIBS" set?
Bradley Lowekamp
blowekamp at mail.nih.gov
Tue Mar 31 09:48:39 EDT 2015
Hello,
The ITKConfig.cmake file is generated by the ITK build and utilized by projects which use ITK ( by CMake's find_package and include( ${ITK_USE_FILE}) ). So the files comments are in the past tense because when it's used ITK has already been built.
HTH,
Brad
On Mar 30, 2015, at 11:29 PM, Audrius Stundzia <audrius at tomographix.com> wrote:
> Hello,
>
> OS: Windows 8.1 x64
> CMake: 3.2.1
> ITK: 4.7.1
> IDE: MS VS 2010 x64
>
> In either ITK Debug or Release build, I'm puzzled by the following:
>
> In CMAKE -> Build -> BUILD_SHARED_LIBS is selected to be "ON" [a check
> mark in the check box].
>
> CMake Configure and Generate are run. The build directory and it's
> contents are created.
>
> In ../ITK/build/, I check ITKConfig.cmake
>
> and find the following lines 35 and 36:
>
> # Whether ITK was built with shared libraries.
> set(ITK_BUILD_SHARED "OFF")
>
> Two questions:
>
> 1/ Why the past tense in the comment? At this stage I have not yet run
> "BUILD_ALL" in VS 2010 IDE.
>
> 2/ Why is ITK_BUILD_SHARED set to "OFF"?
> Should it not be set to "ON" given that I have selected
> BUILD_SHARED_LIBS to be "ON" in CMake.
>
> (Anyways, trying to find a bug in RTK that occurs when linking ITK.) Any
> insight would be appreciated.
>
> Audrius
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/mailman/listinfo/community
More information about the Community
mailing list