Re: [CMake] Mix Debug and Release Flags In One Library

2014-05-06 Thread Jack Morrison
I've overcome this by using the COMPILE_FLAGS source file property http://www.cmake.org/cmake/help/v2.8.11/cmake.html#prop_sf:COMPILE_FLAGS Those flags will be appended to the rest of the compiler flags, so you can make them override the debug flags. For instance, if your debug flags are "-UNDEBUG

Re: [CMake] CMake for Android projects

2014-05-06 Thread Jack Morrison
Hi Robert, If you want, check out the excellent "android-cmake" project for some tips. It covers a lot of different scenarios for Android: https://code.google.com/p/android-cmake/ I put together a simple function to generate an APK from CMake: https://github.com/arpg/rpg-cmake/blob/master/def_apk

[CMake] CheckIncludeFiles.cmake Question

2014-04-30 Thread Jack Morrison
The conditional here: https://github.com/Kitware/CMake/blob/master/Modules/CheckIncludeFiles.cmake#L42 causes me issues when called with CMAKE_HAVE_PTHREAD_H in FindThreads. It evaluates to false, leaving pthread.h to not be found and FindThreads to fail. What is the purpose of this conditional