Re: [CMake] clean custom_target

2016-10-25 Thread Petr Kmoch
Hi Tiago. The best I can think of is the directory property ADDITIONAL_MAKE_CLEAN_FILES: https://cmake.org/cmake/help/latest/prop_dir/ADDITIONAL_MAKE_CLEAN_FILES.html You can set it to a list of files which will be removed as part of running `make clean` or its equivalent for other generators. P

[CMake] clean custom_target

2016-10-25 Thread Tiago Macarios
Hi, Is there a way to have a command to be run during a clean? I have a custom_target which does a fair bit of things and it also has the ability to clean up after itself. So conceptually something like this is what I am looking for: add_custom_target(Name ALL COMMAND command COMMAND_CLE

[CMake] make install gives cmake link errors for libstdc++

2016-10-25 Thread Jack Stalnaker
I'm having an odd problem. I built and installed cmake in a non-standard location, using a compiler different from the system compiler on linux. Cmake compiles without complaint, and installs without complaint. When I attempt to build a piece of software using cmake, the configuration and build sta

Re: [CMake] CPack DEB version info is missing patch level

2016-10-25 Thread cen
Sorry for wasting your time, it does work indeed. I forgot to pull the correct version of CmakeLists.txt on my debian machine.. Thank you. Domen Vrankar je 25. 10. 2016 ob 21:48 napisal: 2016-10-25 16:59 GMT+02:00 cen >: Why is patch level not baked into the DE

Re: [CMake] cmake - ified libjpeg source code

2016-10-25 Thread Boudewijn Rempt
On Tue, 25 Oct 2016, Aaron Boxer wrote: > Hello, > > I am looking for a cmake-ified jpeg library to add to another cmake project. > Any recommendations? I get mine here: https://phabricator.kde.org/diffusion/EMERGE/browse/master/portage/win32libs/jpeg/ -- Boudewijn Rempt | http://www.krita.or

Re: [CMake] CPack DEB version info is missing patch level

2016-10-25 Thread Domen Vrankar
2016-10-25 16:59 GMT+02:00 cen : > > Why is patch level not baked into the DEB but it is in RPM? If install the > deb, soft links have the proper patch level version so I guess it is > ultimately ok but kinda annoying. > Which version of CPack are you using? I can't reproduce this even with old

[CMake] cmake - ified libjpeg source code

2016-10-25 Thread Aaron Boxer
Hello, I am looking for a cmake-ified jpeg library to add to another cmake project. Any recommendations? Thanks, Aaron -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CM

Re: [CMake] ExternalProject_Add : set the location of CMakeLists.txt

2016-10-25 Thread Konstantin Podsvirov
Hello again. 25.10.2016, 20:31, "Konstantin Podsvirov" : > Hello, Benjamin. > > 25.10.2016, 19:41, "Benjamin Ballet via CMake" : >>  Hi, >> >>  I'm trying to get GLEW (https://github.com/nigels-com/glew) with >> ExternalProject_Add >>  It's buildable with cmake but the CMakeLists.txt is in build/

Re: [CMake] ExternalProject_Add : set the location of CMakeLists.txt

2016-10-25 Thread Konstantin Podsvirov
Hello, Benjamin. 25.10.2016, 19:41, "Benjamin Ballet via CMake" : > Hi, > > I'm trying to get GLEW (https://github.com/nigels-com/glew) with > ExternalProject_Add > It's buildable with cmake but the CMakeLists.txt is in build/cmake directory. > > Is there a way to specify the directory of the CMa

[CMake] ExternalProject_Add : set the location of CMakeLists.txt

2016-10-25 Thread Benjamin Ballet via CMake
Hi, I'm trying to get GLEW (https://github.com/nigels-com/glew) with ExternalProject_Add It's buildable with cmake but the CMakeLists.txt is in build/cmake directory. Is there a way to specify the directory of the CMakeLists.txt file ? If I change SOURCE_DIR it will only clone the repo in SOURCE

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-25 Thread Parag Chandra
I just pulled down the latest source, ran CMake on it, and then ran ccmake to view the options available. Mine shows several SPHINX-related options, and since SPHINX_EXECUTABLE could not be found, all the other SPHINX options have been set to OFF. Can you verify the same on your end? It seems to

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-25 Thread Homero Cardoso de Almeida
That did not work. Even though I set the BUILD_DOCUMENTATION flag in the debian/rules script, I cannot get it to skip doc build. Or maybe I'm writing in the wrong folder, I don't know. :( Em ter, 25 de out de 2016 às 11:35, Parag Chandra escreveu: > This is a shot in the dark, but if I remember

[CMake] CPack DEB version info is missing patch level

2016-10-25 Thread cen
Hi I am not sure if this is a CPack thing or a deb thing. my CmakeLists.txt: SET(VERSION_MAJOR "1") SET(VERSION_MINOR "3") SET(VERSION_PATCH "2") SET(CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}") SET(CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}") SET(CPACK_PACKAGE_VERSION_PATCH "${VERSION_P

Re: [CMake] [EXTERNAL]: CMake integration in Gradle (Android Studio)

2016-10-25 Thread Parag Chandra
Hi Robert, I’ve been struggling with the same thing. My cross-platform build already uses a combination of CMake and Gradle, which enables IDE integration on all supported platforms except Android. When I started this project about 3 years ago, there weren’t any real options for native code dev

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-25 Thread Parag Chandra
I actually haven’t ever tried to build protobuffers myself, so I can’t comment on its doc generation or sphinx dependency. Sorry if this seems obvious, but have you tried modifying protobuffer’s CMakeLists.txt file so that it uses the same 2.8.9 CMake you are using? 2.8.12 may not be that far of

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-25 Thread Parag Chandra
This is a shot in the dark, but if I remember correctly, building CMake requires a separate version of CMake in order to bootstrap itself. So when you run ccmake (or cmake-gui) to configure the new version of CMake you’re trying to build, there might be some Boolean option in there that will dis

[CMake] CMake integration in Gradle (Android Studio)

2016-10-25 Thread Robert Dailey
I'm not sure if the CMake mailing lists are the right place to ask this question but I thought I'd ask just in case someone has gone down this path or has experience with what Google/Gradle is actually trying to accomplish with what seems to be a hand-built version of CMake with custom patches that

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-25 Thread Homero Cardoso de Almeida
Actually, I'm trying to compile cmake 3.0.2 now. I did exactly that for protobuffers, and it compiled file. It's just the package config file that still requires 2.8.12 and I'm not sure of the consequences of changing that. So I'm trying to build 3.0.2 on squeeze now, and having a hard time buildi

Re: [CMake] Prevent ExternalProject from updating git submodules

2016-10-25 Thread David Cole via CMake
Sounds like you should consider customizing the git clone with DOWNLOAD_COMMAND. You can do anything you want as a customization... HTH, David > On Oct 24, 2016, at 11:35 PM, Timothy Rae wrote: > > Thanks for the tip, but I'd rather it didn't fetch the documentation > submodule at all, as th

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-25 Thread Homero Cardoso de Almeida
Thanks for your help. I was able to download and compile protobuffers 2.7 using cmake, however the cmake config for protobuffers is fixed for 2.8.12, while I need it to work with cmake 2.8.9 as it's going to run in system frozen in Debian Squeeze (Squeeze actually defaults on cmake 2.8.2 and I got

Re: [CMake] CMAKE_INCLUDE_CURRENT_DIR on a function

2016-10-25 Thread Craig Scott
Thinking about this some more, I suspect Petr's comments may be on the right track. What matters is the value of this variable in the scope of the *directory* being processed. You need the CMAKE_INCLUDE_CURRENT_DIR variable to be set in that directory scope, if I'm understanding the docs correctly.