[CMake] How to using 'conditional statements at generate time'?

2013-03-22 Thread Yuchen Deng
hi, there! I was reading the release log in here: http://www.kitware.com/news/home/browse/CMake?2012_11_07CMake+2.8.10+Just+Released Add see the parts: Generator expressions, which are used to introduce conditional statements at generate time rather than at CMake compile time, are now available

Re: [CMake] How to using 'conditional statements at generate time'?

2013-03-22 Thread Stephen Kelly
Yuchen Deng wrote: hi, there! I was reading the release log in here: http://www.kitware.com/news/home/browse/CMake? 2012_11_07CMake+2.8.10+Just+Released Add see the parts: Generator expressions, which are used to introduce conditional statements at generate time rather than at CMake

Re: [CMake] How to using 'conditional statements at generate time'?

2013-03-22 Thread Yuchen Deng
Thanks for your help! It's works, and it seems great!! I just try this command using 2.8.11-rc1: target_include_directories(${target_php} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR};${CMAKE_CURRENT_BINARY_DIR}/SWIG; ${PHP5_INCLUDE_PATH} ) It's cool! 2013/3/22 Stephen Kelly steve...@gmail.com