Passing CMake configure flags

Asked by Marb on 2011-01-07

Apologies if this is obvious.

I've tried various forms, for example:

-DENABLE_KDE=OFF
-DENABLE_KDE_INTEGRATION=OFF
-DCMAKE_ENABLE_KDE_INTEGRATION=OFF
-DWITH_KDE=OFF
-DWITH_KDE_INTEGRATION=OFF
-DWITH_KDE_INTEGRATION=OFF
-DENABLE-KDE=OFF
-DENABLE-KDE_INTEGRATION=OFF
-DCMAKE-ENABLE_KDE_INTEGRATION=OFF
-DWITH-KDE=OFF
-DWITH-KDE_INTEGRATION=OFF
-DWITH-KDE-INTEGRATION=OFF

and the same in lower case, with OFF replaced by 0...

after finding in CMakeLists.txt:

############# KDE-INTEGRATION #################
set (with_kde_integration "no")
if (NOT "${enable-kde-integration}" STREQUAL "no")
        pkg_check_modules (KDE_INTEGRATION gio-2.0)
        if ("${KDE_INTEGRATION_FOUND}" STREQUAL "")
                message (STATUS "Could not find kde libs; Cairo-Dock won't be built with KDE support.")
        else()
                set (VERSION_KDE_INTEGRATION "0.0.1")
                set (PACKAGE_KDE_INTEGRATION "cd_kde-integration")
                set (with_kde_integration "yes")
                set (kde_integrationdatadir "${pluginsdatadir}/kde-integration")
                add_subdirectory ("kde-integration")
        endif()
endif()

but each time I ended up with

-- - with KDE support: yes

Pardon me for missing something that I imagine is right in front of my eyes...but what flags need to be passed to disable plugins?

Question information

Language:
English Edit question
Status:
Solved
For:
Cairo-Dock Plug-ins Edit question
Assignee:
No assignee Edit question
Solved by:
Fabounet
Solved:
2011-01-09
Last query:
2011-01-09
Last reply:
2011-01-07
Best Fabounet (fabounet03) said : #1

as you can see in the CMakeLists.txt file, there are lines like
if (NOT "${enable-kde-integration}" STREQUAL "no")
so you just have to do
cmake -Denable-kde-integration=no -Denable...... CMakeLists.txt
out of curiosity, why do you want to disable some plug-ins ?

Marb (tenebrarum) said : #2

Thanks Fabounet, that solved my question.

Marb (tenebrarum) said : #3

Hm, next time I'll type my reply before clicking on that button ...

...but anyway, I was experiencing the build problem in the python bindings that you appear to have fixed anyway. That aside, I'd rather not compile something I don't use, much less repeatedly.

Thanks :)