Re: [CMake] Need help generating a config file

2016-10-13 Thread Aaron Boxer
Eric, thanks, I figured it out. On Thu, Oct 13, 2016 at 3:27 PM, Eric Noulard wrote: > > > 2016-10-13 21:18 GMT+02:00 Aaron Boxer : > >> Hello, >> >> I have a foo.h.cmake.in file that I am using to generate a >> foo_config.hfile. >> >> Here

Re: [CMake] Need help generating a config file

2016-10-13 Thread Aaron Boxer
Thanks a lot, Eric. So, I have two cmake variables, and I want to #define FOO_DEFINE if one or the other is set, otherwise I don't want FOO_DEFINE defines at all. Is this possible ? On Thu, Oct 13, 2016 at 3:27 PM, Eric Noulard wrote: > > > 2016-10-13 21:18 GMT+02:00

Re: [CMake] Need help generating a config file

2016-10-13 Thread Eric Noulard
2016-10-13 21:18 GMT+02:00 Aaron Boxer : > Hello, > > I have a foo.h.cmake.in file that I am using to generate a > foo_config.hfile. > > Here is the line in my cmake file that generates the header: > > configure_file(${CMAKE_CURRENT_SOURCE_DIR}/foo.h.cmake.in >

[CMake] Need help generating a config file

2016-10-13 Thread Aaron Boxer
Hello, I have a foo.h.cmake.in file that I am using to generate a foo_config.hfile. Here is the line in my cmake file that generates the header: configure_file(${CMAKE_CURRENT_SOURCE_DIR}/foo.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/foo_config.h @ONLY) I would like to define or