[CMake] difference between LINK_INTERFACE_LIBRARIES and INTERFACE_LINK_LIBRARIES

2014-03-05 Thread Leif Walsh
Based on --help-property I can't really tease them apart. It looks like LINK_INTERFACE_LIBRARIES is old and INTERFACE_LINK_LIBRARIES is new, but I can't really figure out what the change is. In my project, I have a hierarchy of static libraries connected by TARGET_LINK_LIBRARIES(... LINK_PUBLIC .

[CMake] CMAKE_RUNTIME_OUTPUT_DIRECTORY inconsistent between make and Xcode

2014-03-05 Thread Lucas Soltic
Hello, I have noticed an annoying difference between Xcode and make as far as the output directory is concerned. I have added the following to my CMakeLists.txt: set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) set(CMAKE_RUNT

[CMake] PackageMaker with script for InstallationCheck

2014-03-05 Thread NoRulez
Hello list, I found variables to launch custom preflight/postflight scripts with CPACK_PREFLIGHT_SCRIPT and CPACK_POSTFLIGHT_SCRIPT. Is there also a way to call a custom install check script? For example, I need to know if a specified application is already installed or not. If the application

Re: [CMake] Not finding build type when using cmake with llvm/clang

2014-03-05 Thread Nils Gladitz
On 05.03.2014 16:06, Edward Diener wrote: MingW does not have a "make.exe" at all. What actual program is cmake looking for when "MinGW Makefiles" is specified ? http://www.cmake.org/cmake/help/git-master/generator/MinGW%20Makefiles.html: mingw32-make Is mingw's bin directory in your PATH?

Re: [CMake] How to write a correct wrapper of MESSAGE()?

2014-03-05 Thread Clark Wang
On Mon, Oct 21, 2013 at 6:06 PM, Johannes Zarl wrote: > On Thursday, 17. October 2013, 07:12:51, Clark WANG wrote: > > When I'm using CMake more and more I find it's not a real serious > > "language". It's so tricky. > > I can see why you are frustrated. I don't think it's all bad though. > Hopef

Re: [CMake] Not finding build type when using cmake with llvm/clang

2014-03-05 Thread Edward Diener
On 3/5/2014 3:19 AM, Kevin Funk wrote: Am Mittwoch, 5. März 2014, 00:29:55 schrieb Edward Diener: When trying to build llvm/clang on Windows using cmake I execute from a build directory I created: cmake -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles" ..\llvm only to receive: CMake Error: CMak

[CMake] problems with Visual Studio Express 2013

2014-03-05 Thread Kris Thielemans
Hi all We're trying to build an application using ITK on Windows using Visual Studio Express 2013 (downloads of all software happened last week, so I guess we're up-to-date). Unfortunately, we get a lot of configuration errors (see full list below), implying that CMake 2.8.12.2 has problems with t

Re: [CMake] Run executable targets after change of dependency and/or every time

2014-03-05 Thread Schröter, Philipp
I forgot to mention, that I also have a custom_target called run_tests, which is created and depends on every test. By being build (in the sense of calling, since it does not have any source or anything else) this target arranges that all tests are being build and run. -- Powered by www.kitwar

[CMake] Run executable targets after change of dependency and/or every time

2014-03-05 Thread Schröter, Philipp
Hi CMakers, I'm looking for a way to 1. build and run executable targets, after one of their dependency has been changed and 2. to run these executable targets every time whether they were rebuild or not. The first point is more important to me that the second one. A little background: I am wor

Re: [CMake] Not finding build type when using cmake with llvm/clang

2014-03-05 Thread Kevin Funk
Am Mittwoch, 5. März 2014, 00:29:55 schrieb Edward Diener: > When trying to build llvm/clang on Windows using cmake I execute from a > build directory I created: > > cmake -DCMAKE_BUILD_TYPE=Release -G "MinGW Makefiles" ..\llvm > > only to receive: > > CMake Error: CMake was unable to find a bui