Only add the llvm elf headers on Windows for dbgutil (#33706)
authorJuan Hoyos <juan.hoyos@microsoft.com>
Wed, 18 Mar 2020 16:08:20 +0000 (09:08 -0700)
committerGitHub <noreply@github.com>
Wed, 18 Mar 2020 16:08:20 +0000 (16:08 +0000)
src/coreclr/src/debug/dbgutil/CMakeLists.txt

index 0ff9188..bd96e9b 100644 (file)
@@ -1,12 +1,11 @@
+set(CMAKE_INCLUDE_CURRENT_DIR ON)
+
 if(CLR_CMAKE_HOST_WIN32)
+  include_directories(${CLR_DIR}/src/inc/llvm)
   #use static crt
   add_definitions(-MT)
 endif(CLR_CMAKE_HOST_WIN32)
 
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
-
-include_directories(${CLR_DIR}/src/inc/llvm)
-
 add_definitions(-DPAL_STDCPP_COMPAT)
 
 if(CLR_CMAKE_TARGET_ALPINE_LINUX)