Commit 903780a2 authored by Michael Pyne's avatar Michael Pyne

I received exactly 0 complaints about this feature not working, but I'm finally implementing it

anyways.

The do-not-compile flag now works for CMake again.  However, it only works for modules that
have specially coded support for it in CMakeLists.txt (i.e. the ones that you can already do
-DBUILD_foo=OFF for).  Luckily this is pretty well established at this point.

svn path=/trunk/KDE/kdesdk/scripts/kdesvn-build; revision=842797
parent d4cdc600
......@@ -4521,10 +4521,10 @@ sub safe_run_cmake
# grep out empty fields
@commands = grep {!/^$/} @commands;
if (get_option ($module, 'do-not-compile'))
{
warning " y[*] kdesvn-build does not support y[do-not-compile] with CMake.";
}
# Add -DBUILD_foo=OFF options for the directories in do-not-compile.
# This will only work if the CMakeLists.txt file uses macro_optional_add_subdirectory()
my @masked_directories = split(' ', get_option($module, 'do-not-compile'));
push @commands, "-DBUILD_$_=OFF" foreach @masked_directories;
# Get the user's CXXFLAGS, use them if specified and not already given
# on the command line.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment