Skip to content

Commit

Permalink
issue #169 Add include directories of MIR to help CLion find them
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Aug 28, 2020
1 parent 534abc7 commit 16d59f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ()
Expand Down

0 comments on commit 16d59f6

Please sign in to comment.