Brad King wrote: > $ cmake .. -G"Xcode" > ... > CMake Error at CMakeLists.txt:5 (target_link_libraries): > Error evaluating generator expression: > > $<TARGET_PROPERTY:$<$<CONFIG:DEBUG>:A>,INTERFACE_INCLUDE_DIRECTORIES> > > $<TARGET_PROPERTY:tgt,prop> expression requires a non-empty target name. > ...
I haven't had time to investigate fully, but this patch should 'fix' the problem: diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 66c22b1..8174ac2 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -2947,8 +2947,8 @@ std::vector<std::string> cmTarget::GetIncludeDirectories(const char *config) } cmGeneratorExpression ge(it->Backtrace); cmsys::auto_ptr<cmCompiledGeneratorExpression> cge = ge.Parse( - "$<TARGET_PROPERTY:" + - it->Value + ",INTERFACE_INCLUDE_DIRECTORIES>"); + "$<$<BOOL:" + it->Value + ">:$<TARGET_PROPERTY:" + + it->Value + ",INTERFACE_INCLUDE_DIRECTORIES>>"); this->Internal- >CachedLinkInterfaceIncludeDirectoriesEntries.push_back( new cmTargetInternals::IncludeDirectoriesEntry(cge, I'll investigate later to see if it's the right fix and why. Thanks, Steve. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake