Quantcast

QT4/5_WRAP_CPP / INTERFACE_INCLUDE_DIRECTORIES

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

QT4/5_WRAP_CPP / INTERFACE_INCLUDE_DIRECTORIES

Christian Ehrlicher
Hi,
 
I wonder if it is a documentation error or an error in QT4/5_CREATE_MOC_COMMAND. The documentation states, that INTERFACE_INCLUDE_DIRECTORIES is taken from the given target but the code says, that INCLUDE_DIRECTORIES is used:
If the <tgt> is specified, the
      INTERFACE_INCLUDE_DIRECTORIES and INTERFACE_COMPILE_DEFINITIONS from
      the <tgt> are passed to moc.
Code:
set(targetincludes "$<TARGET_PROPERTY:${moc_target},INCLUDE_DIRECTORIES>")
 
 
The two properties have different content and when I use an INTERFACE library as target, it does not work (forbidden property):
TARGET_INCLUDE_DIRECTORIES(foo
  PUBLIC
    /home/public
  INTERFACE
    /home/interface
  PRIVATE
    /home/private
)
get_target_property(targetincludes foo INTERFACE_INCLUDE_DIRECTORIES)
message(STATUS "ifc incl: ${targetincludes}")
get_target_property(targetincludes foo INCLUDE_DIRECTORIES)
message(STATUS "incl: ${targetincludes}")
-->
-- ifc incl: /home/public;/home/interface
-- incl: /home/public;/home/private
 
Thx,
Christian

--

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 the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Loading...