Don't attempt to walk up the directory tree after finding LLDB.h.
authorPat Gavlin <pagavlin@microsoft.com>
Sat, 28 Feb 2015 02:32:38 +0000 (18:32 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Sat, 28 Feb 2015 02:32:38 +0000 (18:32 -0800)
The value returned from find_path is already correct.

src/ToolBox/SOS/lldbplugin/CMakeLists.txt

index 325ad3b..44ed059 100644 (file)
@@ -18,10 +18,6 @@ if(CLR_CMAKE_PLATFORM_UNIX)
             message(FATAL_ERROR "Cannot find LLDB.h. Try installing lldb-3.5-dev (or the appropriate package for your platform)")
         endif()
     endif()
-
-    # Add the parent's parent's directory to the include path
-    get_filename_component(LLDB_H LLDB_H DIRECTORY)
-    get_filename_component(LLDB_H LLDB_H DIRECTORY)
     include_directories(LLDB_H)
 
     set(ENABLE_SOSPLUGIN ON)