get_filename_component(LLILC_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/../../include ABSOLUTE)

include_directories(${LLILC_INCLUDES}/clr
                    ${LLILC_INCLUDES}/GcInfo
                    ${LLILC_INCLUDES}/Jit
                    ${LLILC_INCLUDES}/Pal)
					
add_definitions(-DSTANDALONE_BUILD)
					
if(CLR_CMAKE_PLATFORM_UNIX)
    add_compile_options(-fPIC)
endif(CLR_CMAKE_PLATFORM_UNIX)

add_llilcjit_library(GcInfo
    STATIC
	${CORECLR_GCINFO}/gcinfoencoder.cpp
	GcInfoUtil.cpp
	GcInfo.cpp
)

get_filename_component(LLILC_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/../../include ABSOLUTE)

include_directories(${LLILC_INCLUDES}/clr
                    ${LLILC_INCLUDES}/GcInfo
                    ${LLILC_INCLUDES}/Jit
                    ${LLILC_INCLUDES}/Pal)
					
add_definitions(-DSTANDALONE_BUILD)
					
if(CLR_CMAKE_PLATFORM_UNIX)
    add_compile_options(-fPIC)
endif(CLR_CMAKE_PLATFORM_UNIX)

add_llilcjit_library(GcInfo
    STATIC
	${CORECLR_GCINFO}/gcinfoencoder.cpp
	GcInfoUtil.cpp
	GcInfo.cpp
)

if( NOT LLILC_BUILT_STANDALONE )
  add_dependencies(GcInfo intrinsics_gen)
endif()

Make GcInfo lib depend on intrinsics_gen
Make GcInfo lib depend on intrinsics_gen

LLVM change r252796 (git hash f805775e) reworked llvm/IR/Attributes.h so
that it now #includes a generated .inc file.  GCInfo.cpp transitively
 #includes Attributes.h, so make it depend on the intrinsics_gen target
(which includes the generation of the .inc file)
