Re: [CMake] Help for a cmake newbie

2016-01-31 Thread Michael Surette
On 30/01/16 09:42 PM, vadtec wrote: > Let me start by saying I consider my self a cmake newbie. I've made > simple makefiles and simple cmake files, but anything more complicated > has to this point eluded me. Not for a lack of trying, searching, > researching, trail, and a great deal of error: I

[CMake] include_directories question

2016-01-31 Thread Michael Surette
I have the following CMakeLists file which builds one of the examples in FLTK as a separate project. --- cmake_minimum_required(VERSION 2.6) project(CubeView) set(FLTK_DIR /home/msurette/build/fltk-release/) find_package(FLTK REQUIRED NO_MODULE) include(${FLTK_USE_FILE}) #run fluid -c to

Re: [CMake] Is there any way to use clang-cl with MSBuild on Windows?

2016-01-31 Thread Yi-Hong Lyu
Hello Bill, If I generate the ALL_BUILD.vcxproj for MSVC 19.0.23506.0 as usual, I can use command "msbuild ALL_BUILD.vcxproj /p:cltoolexe=clang-cl" to build the project using clang-cl. However it might include wrong directory like C:\\Program Files (x86)\Windows Kits\10\Include\10.0.10240.0\ucrt

[CMake] Using ccache with Xcode generator

2016-01-31 Thread Craig Scott
After a bit of experimenting, it seems that getting ccache working with the Xcode generator isn't so straightforward. For Ninja and Unix Makefiles, the RULE_LAUNCH_COMPILE global property nicely gives us the behaviour we want, but this doesn't work for Xcode. Under the constraint that we can't

[Cmake-commits] CMake branch, master, updated. v3.4.3-916-ge18d0df

2016-01-31 Thread Kitware Robot
_VERSION_MINOR 4) -set(CMake_VERSION_PATCH 20160131) +set(CMake_VERSION_PATCH 20160201) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/

Re: [CMake] Help for a cmake newbie

2016-01-31 Thread Cristian Adam
On 31-Jan-16 03:42, vadtec wrote: curl, libiconv, libpng, libssh2, and zlib are the libs I want to build and use both on Linux and Windows. I know all of those are available on Linux and I could use the system installed versions, but I want to use the same vesions on Windows as well. The

Re: [CMake] Help for a cmake newbie

2016-01-31 Thread Tamás Kenéz
Vadtec, > My main problem is getting cmake to use only my locally installed/compiled copies of the libs. I need those libs to live along side the binaries, and using the versions I compile is important. I'll answer the question of finding the libraries and not the building problem. We (in my

[CMake] CheckLibraryExists requires C Compiler

2016-01-31 Thread Hannes Hauswedell
Dear CMake-Hackers, I have a project which is purely C++. We have recently switched from project (FOO) to project (FOO CXX) so that we don't depend on CMAKE_C_COMPILER being set. This has broken our BZip2 detection: -- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version "1.0.6")