Re: [CMake] CMake + Gradle for Android

2017-08-08 Thread Eric Wing
On 8/8/17, Jom O'Fisher wrote: > Yeah, we'd like to support any CMake more recent than 3.7.0 (which is the > first version to support server mode). So your fork would need to be based > on a somewhat recent CMake. We probably wouldn't support a path directly in > build.gradle since that is typical

Re: [CMake] CMake + Gradle for Android

2017-08-08 Thread Jom O'Fisher
Yeah, we'd like to support any CMake more recent than 3.7.0 (which is the first version to support server mode). So your fork would need to be based on a somewhat recent CMake. We probably wouldn't support a path directly in build.gradle since that is typically a source controlled artifact. We'd le

Re: [CMake] CMake + Gradle for Android

2017-08-08 Thread Eric Wing
Hi Jom, I'm glad to hear Android's CMake will eventually catch up. But since you are here, can you add a feature that allows a user to specify an alternate location for where CMake is located? There are two useful cases for this. 1) Users daring or desperate enough to try using a more recent CMa

Re: [CMake] CMake 3.9.0 Windows zip file shows wrong version

2017-08-08 Thread Adam Getchell
Yeah, that was it, lol. -- Adam Getchell https://keybase.io/adamgetchell > On Aug 8, 2017, at 1:33 AM, David Cole wrote: > > I suspect you are running a different cmake, not the one you've unzipped. > > Type "where cmake" instead of "cmake --version" and Windows will list > the directories wh

Re: [CMake] CMake equivalent to Boost.Build site-config.jam oruser-config.jam

2017-08-08 Thread Lectem
I think that you are looking for the toolchain files : https://cmake.org/cmake/help/v3.0/manual/cmake-toolchains.7.html The other option is to use a cmake script to specify your variables which includes CMakelists.txt (or the other way around if you can modify the CMakelists.txt). This would be

[CMake] CMake equivalent to Boost.Build site-config.jam or user-config.jam

2017-08-08 Thread Brian Davis
Is there a CMake equivalent to a site-config.jam or user-config.jam http://www.boost.org/build/doc/html/bbv2/recipies/site-config.html basically a CMake file the user can put in a project directory that CMake will read first when using cmake-gui that allows user to specify stuff they don't want t

Re: [CMake] Can't get CMake to link pthreads to my lib

2017-08-08 Thread Jean-Michaël Celerier
I've tried this and also set(THREADS_PREFER_PTHREAD_FLAG TRUE) but this didn't work either. --- Jean-Michaël Celerier http://www.jcelerier.name On Tue, Aug 8, 2017 at 4:01 PM, Rolf Eike Beer wrote: > Am 2017-08-08 15:45, schrieb Jean-Michaël Celerier: > >> Here's my CMakeLists.txt : >> >

Re: [CMake] Can't get CMake to link pthreads to my lib

2017-08-08 Thread Rolf Eike Beer
Am 2017-08-08 15:45, schrieb Jean-Michaël Celerier: Here's my CMakeLists.txt : cmake_minimum_required(VERSION 3.8 FATAL_ERROR) project(oscour) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_CXX_FLAGS "-fconcepts -fsanitize=address -fsanitize=undefined") set(CMAKE_EXE_LINKER_FLAGS "-fconcepts

[CMake] Can't get CMake to link pthreads to my lib

2017-08-08 Thread Jean-Michaël Celerier
Here's my CMakeLists.txt : >>> cmake_minimum_required(VERSION 3.8 FATAL_ERROR) project(oscour) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_CXX_FLAGS "-fconcepts -fsanitize=address -fsanitize=undefined") set(CMAKE_EXE_LINKER_FLAGS "-fconcepts -fsanitize=address -fsanitize=undefined") add_sub

Re: [CMake] with cmake-3.9 my testprj breaks, I need to add "add_executable(Qt4::rcc IMPORTED)"

2017-08-08 Thread Rolf Eike Beer
(and we don't use find_lib(QT) because once upon a time it was tried but not instantly found working for cross compiling). We're investigating whether we simply can switch to find_lib(QT) which should solve that. Does this make sense or am I mislead? I have used it for crosscompiling in th

Re: [CMake] with 3.9 my testprj breaks: mylib_autogen/include: No such file or directory

2017-08-08 Thread Steffen Dettmer
Hi, On Mon, Aug 7, 2017 at 8:04 PM, Brad King wrote: > On 08/07/2017 09:01 AM, Steffen Dettmer wrote: > > There is an include path to mylib_autogen/include as -I for g++, but > > this directory does not exist and I get: > > > > cc1plus: error [...] No such file or directory. > > Please open an

Re: [CMake] CMake 3.9.0 Windows zip file shows wrong version

2017-08-08 Thread David Cole via CMake
I suspect you are running a different cmake, not the one you've unzipped. Type "where cmake" instead of "cmake --version" and Windows will list the directories where it finds an executable named cmake. The first one it lists is the one it is running when you type "cmake --version"... If you want

Re: [CMake] with cmake-3.9 my testprj breaks, I need to add "add_executable(Qt4::rcc IMPORTED)"

2017-08-08 Thread Steffen Dettmer
Hi! thanks for your quick reply. On Mon, Aug 7, 2017 at 7:56 PM, Robert Maynard wrote: > > CMake Error: Qt4::rcc target not found hello_world > > Did this work pre CMake 3.9? Yes, it did. However I missed that some of our CMakeLists.txt has "add_executable(Qt4::moc IMPORTED)". So the change se