Re: [CMake] [ANNOUNCE] CMake 3.4.0-rc1 is now ready!

2015-10-06 Thread Orion Poplawski
On 10/06/2015 09:42 AM, Robert Maynard wrote: I am proud to announce the first CMake 3.4 release candidate. This appears to have broken plplot's ada build on Fedora. Previous good (cmake 3.3.2): [ 22%] Building Ada object examples/ada/CMakeFiles/x00a.dir/x00a.o cd /builddir/build/BUILD/plplo

Re: [CMake] Release and Debug build linking

2015-10-06 Thread Lee Butler
So if this is the case, how does one "write correctly" the find/config module so that both debug and release libraries are found? I've got a library I depend on whose maintainer may not have built the best Find module in the world. I've looked at https://cmake.org/Wiki/CMake/Tutorials/How_to

Re: [CMake] Release and Debug build linking

2015-10-06 Thread Tamás Kenéz
CMake supports multi-config generators such as Visual Studio and Xcode for a long time. There are two flavors of config-modules (and find-modules), the legacy one which creates variables like MY_PACKAGE_LIBRARIES and the install-export kind which creates IMPORTED targets. Both kinds of modules sup

[CMake] Release and Debug build linking

2015-10-06 Thread Lee Butler
I am looking for a way to tell my project to link against external debug libraries with a debug build and external release libraries with a release build with Visual Studio. I sort of want to be able to say something like if (BuildingReleaseConfig) find_package(OtherPackage REQUIRED COMPONENTS

[CMake] FindCUDA discard any previous value of CUDA_USE_STATIC_CUDA_RUNTIME

2015-10-06 Thread Thibaut Neiger
Hello. I am using cmake 3.3.2. The following script sets the CUDA_USE_STATIC_CUDA_RUNTIME option, then finds the CUDA package. cmake_minimum_required(VERSION 3.3) option(CUDA_USE_STATIC_CUDA_RUNTIME OFF) set(CUDA_TOOLKIT_ROOT_DIR "d:/work/CUDAToolkit") message(STATUS CUDA_USE_STATIC_CUDA_RUNTIM

[CMake] FindPNG can not find files to set PNG_PNG_INCLUDE_DIR, PNG_LIBRARY

2015-10-06 Thread podenok
I have libpng16.dll, libpng16.lib, and png.h Where should I put these files to cmake:FindPNG foud them? -- 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 CMake community.

[CMake] [ANNOUNCE] CMake 3.4.0-rc1 is now ready!

2015-10-06 Thread Robert Maynard
I am proud to announce the first CMake 3.4 release candidate. Sources and binaries are available at: https://cmake.org/download/ Documentation is available at: https://cmake.org/cmake/help/v3.4 Release notes appear below and are also published at https://cmake.org/cmake/help/v3.4/release/3

[CMake] Multiple Executables for every target in Xcode

2015-10-06 Thread Michael Jackson
hello list, I am running Xcode (5 & 6) and using CMake to generate the Xcode project files. We have a lot of targets for our project and we were looking into ways of refactoring the Cmake codes in order to reduce the number of targets. For example we have a lot of plugins that we compile and

Re: [CMake] Removing duplicate entries from CXXFLAGS

2015-10-06 Thread Attila Krasznahorkay
Hi Roman, I'm not necessarily only talking about CMAKE_CXX_FLAGS here. I define compile flags for my targets in a number of different ways. Like: find_package( ROOT COMPONENTS ${ROOT_LINK_COMPONENTS} REQUIRED ) include( ${ROOT_USE_FILE} ) ... add_definitions( ${ATLAS_DEFINITIONS} ) ...

[CMake] How to check if test exists

2015-10-06 Thread CHEVRIER, Marc
Hi, What is the best way to check if a test is already defined using function add_test? My initial though was that if() can be used for that purpose but, unfortunately, if (TEST ) is not supported for now. Thanks. Marc -- Powered by www.kitware.com Please keep messages on-topic and check

Re: [CMake] Removing duplicate entries from CXXFLAGS

2015-10-06 Thread Roman Bolshakov
CMake performs deduplication of per-target flags for sure. However I'm not sure if CMAKE_CXX_FLAGS is deduplicated. But I consider this variable as global flags for the whole project which is defined at topmost CMakeLists.txt. If you need to specify some flags specifically for a target use t