[CMake] AUTOMOC with files on different folders

2016-05-10 Thread Tiago Macarios
Hi, I am having trouble using AUTOMOC with a project where header files and source files are in different sub-directories. I wrote a detailed stack overflow question here: http://stackoverflow.com/questions/37151163/cmake-automoc-with-files-on-different-folders and would really appreciate if someo

Re: [CMake] Difference between PRIVATE and PUBLIC with target_link_libraries

2016-05-10 Thread Patrick Boettcher
On Tue, 10 May 2016 11:39:49 +0200 Attila Krasznahorkay wrote: > Hi Patrick, > > I *think* that these public/private rules behave a bit differently > for static libraries than they do for shared ones. > > But I have to admit, that based on this code I also would've guessed > that -I/tmp would n

[CMake] Find_Boost sets Boost_INCLUDE_DIR before making sure the right version is found

2016-05-10 Thread Phil Osteen
I'm not sure if this is a pattern of some sort or if it is unique to Find_Boost, but using EXACT with find_package(Boost), as described here , will fail to find the correct boost version depending on the location of other boost versions. In

[CMake] Cannot include third-party Framework headers directories as system directories in XCode for avoiding their warning

2016-05-10 Thread tetractius
Hi list, I have an issue caused by a warning in the qt5 brew version in osx when using Xcode generator I can safely find the qt framework in the brew cellar: set(CMAKE_PREFIX_PATH /usr/local/opt/qt5) find_package(Qt5Widgets REQUIRED) and with this I can easily add this framework to my project b

Re: [CMake] Running cpack without source folder

2016-05-10 Thread Miklos Espak
Hi Attila, indeed, I was running cpack as 'make package'. Everything is fine if I run "cpack --config ./CPackConfig.cmake". Thanks very much. Miklos On 10 May 2016 at 10:42, Attila Krasznahorkay < attila.krasznahor...@gmail.com> wrote: > Hi, > > If you run the cpack executable directly, it sh

Re: [CMake] Running cpack without source folder

2016-05-10 Thread Attila Krasznahorkay
Hi, If you run the cpack executable directly, it should not reconfigure/rebuild your project. As far as I know... How do you run it now? "make package"? That will reconfigure/rebuild the project not really because of CPack, but because of how the Makefiles are set up. Cheers, Atti

Re: [CMake] Difference between PRIVATE and PUBLIC with target_link_libraries

2016-05-10 Thread Attila Krasznahorkay
Hi Patrick, I *think* that these public/private rules behave a bit differently for static libraries than they do for shared ones. But I have to admit, that based on this code I also would've guessed that -I/tmp would not show up in the build of exe1... I did manage to use public and private de

Re: [CMake] No cmake.exe in latest CMake windows binaries

2016-05-10 Thread Miklos Espak
I do not know it either, I see the files now, but that time I tried to download and unzip the installer two-three times and I did not find it there. I might have done something wrong. Thanks for checking. Miklos On 10 May 2016 at 09:01, Claudio C wrote: > I don't know the package on the websit

[CMake] Give clear warning if --build, -E or --find-package

2016-05-10 Thread Claudio C
I have seen this issue has been closed: https://cmake.org/Bug/view.php?id=16093#bugnotes I understand the synopsis shows that those "options" (so they are called) have to be given as first, but I think then it should be made explicit in the option description and/or cmake should give a clear error

Re: [CMake] No cmake.exe in latest CMake windows binaries

2016-05-10 Thread Claudio C
I don't know the package on the website has been updated in the meantime, but cmake.exe and cmake-gui.exe are there now, in the bin subfolder. Message: 1 Date: Fri, 6 May 2016 22:32:01 +0100 From: Miklos Espak To: "cmake@cmake.org" Subject: [CMake] No cmake.exe in latest CMake windows binaries

[CMake] Running cpack without source folder

2016-05-10 Thread Miklos Espak
Hi, given a complete build folder with all external projects, is it possible to run cpack without touching the sources? As I see, it now starts with configuring and building the project. (Skipping what is up-to-date, usually everything.) This can cause a problem if you switched branch after the b

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-10 Thread Gregor Jasny via CMake
On 10/05/16 01:52, Siyuan Ren wrote: > Version 7.3.1 (7D1014) Could you please share your build and source directory with me? -- 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