[CMake] Visual Studio Express projects don't inherit from parent
Tron Thomas
tron.thomas at frontier.com
Mon Aug 16 22:32:41 EDT 2010
I don't think that is the problem.
I have not changed that script for a long time and it was working fine.
Only recently have I upgraded to CMake 2.8.2 and tried to configure the
project for Visual C++ 2010 Express.
Before that I was using CMake 2.8.1 with Visual C++ 2008 Express and
everything worked fine. I could try testing CMake 2.8.2 with Visual C++
2008 Express to see if it still works.
I suspect it will and the problem lies with the generator for new 2010
version of Visual C++ Express.
On 08/16/2010 06:59 PM, John Drescher wrote:
> On Mon, Aug 16, 2010 at 9:53 PM, Tron Thomas<tron.thomas at frontier.com> wrote:
>
>> On 08/16/2010 10:38 AM, Brian Davis wrote:
>>
>>> First off, I don't know the answer to your question, but I am curious how
>>> you are getting CMake to create inherited projects. What are the commands
>>> you are suing to create an inherited project in CMake? This is something I
>>> think I can use in my projects.
>>>
>>>
>>>
>> I'm not creating inherited projects per se. I used the include_directories
>> command to set the path to a directory that contains header files that
>> should be used by multiple targets in the project. In Visual Studio terms
>> this is analogous to applying a setting to the solution. All the sub
>> projects in the solution need to inherit the settings of that solution to
>> pick up the header file path. Because this is not happening automatically
>> through the CMake script, I having to go through each project individually
>> and select the inherit from parent setting to they all pick up this search
>> path.
>>
> My guess is that you probably are setting the include_directories in
> the wrong place in your root CMakeLists.txt. What I mean is you are
> setting this variable after you issue the add_subdirectory() instead
> of before.
>
> John
>
>
More information about the CMake
mailing list