diff options
| author | Jussi Pakkanen <jussi.pakkanen@canonical.com> | 2013-01-08 11:07:52 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jussi.pakkanen@canonical.com> | 2013-01-08 11:07:52 +0200 |
| commit | 1437cfd0b1cc365b93b481a3ff9da0765bcf92b1 (patch) | |
| tree | 1889009adcf0fa5c6338209a7d6fdb70a40854d2 /plugins/unitydialog | |
| parent | 70c7e26437d026723a053183cc56d363d967305a (diff) | |
Guard against Compiz changing the build type.
(bzr r3015.3.1)
Diffstat (limited to 'plugins/unitydialog')
| -rw-r--r-- | plugins/unitydialog/CMakeLists.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/unitydialog/CMakeLists.txt b/plugins/unitydialog/CMakeLists.txt index 79b07758b..d6bedcd4a 100644 --- a/plugins/unitydialog/CMakeLists.txt +++ b/plugins/unitydialog/CMakeLists.txt @@ -2,5 +2,15 @@ find_package (Compiz REQUIRED) include (CompizPlugin) +# Guard against Compiz altering global state. +# https://bugs.launchpad.net/compiz/+bug/1096807 +if(CMAKE_BUILD_TYPE STREQUAL "") + set(revert_compiz TRUE) +endif() + compiz_plugin (unitydialog PLUGINDEPS composite opengl PKGDEPS cairo cairo-xlib-xrender gtk+-3.0) +if(revert_compiz) + set (CMAKE_BUILD_TYPE "" CACHE STRING "Build type (Debug/Release/RelWithDebInfo/MinSizeRe)" FORCE) +endif() + |
