Re: [CMake] Xcode generator results in a project file without optimization

2016-05-11 Thread Siyuan Ren
OK, I got it. It worked all the time, but I looked at the wrong scheme/target. On Wed, May 11, 2016 at 3:05 PM, Gregor Jasny wrote: > On 11/05/16 08:40, Siyuan Ren wrote: >> Attached are a minimal demonstration and a screenshot of what Xcode >> shows me when it opens the project. > > This also wo

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-10 Thread Gregor Jasny via CMake
On 10/05/16 01:52, Siyuan Ren wrote: > Version 7.3.1 (7D1014) Could you please share your build and source directory with me? -- 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

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-09 Thread Siyuan Ren
Version 7.3.1 (7D1014) On Mon, May 9, 2016 at 10:03 PM, Gregor Jasny wrote: > On 02/05/16 11:16, Siyuan Ren wrote: >> I have CMake 3.5.2. >> >> I write a simple CMakeLists.txt like the below >> >> ``` >> project(mytest) >> add_executable(mytest test.cpp) >> ``` >> >> Then generate the Xcode proje

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-09 Thread Gregor Jasny via CMake
On 02/05/16 11:16, Siyuan Ren wrote: > I have CMake 3.5.2. > > I write a simple CMakeLists.txt like the below > > ``` > project(mytest) > add_executable(mytest test.cpp) > ``` > > Then generate the Xcode project file with `cmake -G Xcode .`. Open the > project file in Xcode, and I found the opti

[CMake] Xcode generator results in a project file without optimization

2016-05-02 Thread Siyuan Ren
I have CMake 3.5.2. I write a simple CMakeLists.txt like the below ``` project(mytest) add_executable(mytest test.cpp) ``` Then generate the Xcode project file with `cmake -G Xcode .`. Open the project file in Xcode, and I found the optimization level on all kinds of build, including "Debug", "R