CMake truncating include path ?

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

CMake truncating include path ?

Nicholas Yue
Hi,

  I am using CMake 3.8.2 on OS X with

        -G "Eclipse CDT4 - Unix Makefiles"

  I have the following in my CMakeLists.txt

        MESSAGE ( "HDK_INCLUDE_DIR = ${HDK_INCLUDE_DIR}")
        INCLUDE_DIRECTORIES ( ${HDK_INCLUDE_DIR} )

I see the following printed out

        HDK_INCLUDE_DIR = /Applications/Houdini/Houdini16.0.627/Frameworks/Houdini.framework/Versions/Current/Resources/toolkit/include

However, the generated .cproject has the following line

        <pathentry include="/Applications/Houdini/Houdini16.0.627/Frameworks" kind="inc" path="" system="true"/>

resulting in those header files are not being indexed

How do I instruct CMake not to truncate the path I provide when it is generating the Eclipse .cproject file ?

The generated Makefiles and associated *.make are fine as I can build and deploy successfully.

Cheers


--

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...