[Cmake] SOURCE_FILES deprecation
Ken Martin
ken.martin at kitware.com
Mon Apr 22 15:31:18 EDT 2002
Hello Amitha,
These commands are not really deprecated. We plan to support them for
a long time to come. But... Here is how it is supposed to work. If you
say that your CMakeList files require CMake version > 1.2 (using the
CMakeRequiredVersion command) then SOURCE_FILES is not a valid command
(since you've specified that CMake 1.2 can't be used anyhow, we don;t
want you using the old style commands). Otherwise they should still be
allowed. So somewhere there must be a CMAKE_REQUIRED_VERSION command
that is causing the errors to show up. The only problem I can see is
that maybe vxl doesn't requires CMake > 1.2 but it is being included
within a project (maybe Insight etc) that does require CMake > 1.2. In
that case something like
IF (COMMAND CMAKE_REQUIRES_VERSION)
CMAKE_REQUIRES_VERSION( VERSION 1.2)
ENDIF (COMMAND CMAKE_REQUIRES_VERSION)
at the beginning of the vxl CMakeLists.txt file should do the job. Let
me know if that is the case or if something else if happening.
Thanks
Ken
> I recently updated to latest CVS CMake and found that
> SOURCE_FILES is
> marked as "deprecated" in version 1.4, but acts as if it were
> removed. I suggest that it stay deprecated in the sense that it will
> work, but will issue warnings. This will make the
> transition from 1.2
> to 1.4 easier.
>
> In particular, we have an informal agreement that vxl will compile
> with the latest released CMake. I don't want people to *have* to
> update to the latest CMake immediately--hopefully people can upgrade
> as they get tired of the warnings.
>
> It also makes it possible for me to test that certain parts of 1.4
> work for vxl without having to switch the whole thing to 1.4.
>
> Perhaps deprecation of commands can be done over two stages where
> possible? 1.n+2 marks some commands in 1.n as deprecated; 1.n+4
> removes those commands.
>
> Thanks,
> Amitha.
> _______________________________________________
> Cmake mailing list
> Cmake at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list