[CMake] Understanding default Visual Studio compiler flags

2017-12-05 Thread Neal Kruis
Hi all, I'm hoping someone can clarify some confusion I have regarding the flags used in Visual Studio Cmake builds. For example, in a release build, there are the defaults: CMAKE_CXX_FLAGS:STRING=/DWIN32 /D_WINDOWS /W3 /GR /EHsc CMAKE_CXX_FLAGS_RELEASE:STRING=/MD /O2 /Ob2 /DNDEBUG We can obvio

Re: [CMake] [CMAKE] - custom compiler for Android

2017-12-05 Thread Brad King
On 12/05/2017 12:05 PM, ramya.gopalkris...@accoliteindia.com wrote: > Please validate our current understanding when a toolchain file or > command-line option sets CMAKE_SYSTEM_NAME to "Android" You may find this note helpful: https://gitlab.kitware.com/cmake/cmake/issues/16708#note_300971 > I

[CMake] [CMAKE] - custom compiler for Android

2017-12-05 Thread Ramya G via CMake
Hi, I am reposting the below email. Your help is highly appreciated. We are working towards creating a toolchain file for an ANDROID compiler We understand that the flow in CMAKE, when CMAKE_SYSTEM_NAME is specified in Android, is different when compared to specifying CMAKE_SYSTEM_NAME

Re: [CMake] Using find_package() portably?

2017-12-05 Thread Carsten Fuchs
Hi, Am 2017-12-05 um 01:27 schrieb R0b0t1: Are you able to link to your project? I am interested in how you have set up your build system. https://www.cafu.de If you're specifically looking at the SCons scripts, please note that they historically grew and are not perfect either: Especially,