issue #169 Add include directories of MIR to help CLion find them

mir-nonssa
Dibyendu Majumdar 4 years ago
parent 534abc7525
commit 16d59f65ee

@ -128,6 +128,10 @@ else ()
set_property(SOURCE ${MIR_SRCS} ${C2MIR_SRCS} ${MIR_JIT_SRCS}
APPEND
PROPERTY COMPILE_DEFINITIONS "MIR_NO_IO=0;MIR_NO_SCAN=1")
if ($ENV{CLION_IDE})
# CLion seems unable to handle include paths set on sources
include_directories("${CMAKE_SOURCE_DIR}/mir;${CMAKE_SOURCE_DIR}/mir/c2mir")
endif ()
else()
set(JIT_SRCS ${NO_JIT_SRCS})
endif ()

Loading…
Cancel
Save