Skip to content

Commit

Permalink
Merge pull request jupyter-xeus#482 from SylvainCorlay/use-prefix-path
Browse files Browse the repository at this point in the history
Use runtime prefix path instead compile-time definition
  • Loading branch information
SylvainCorlay authored Apr 11, 2023
2 parents 019fabf + af22813 commit 21b4717
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,6 @@ if(MSVC)
set_property(TARGET xeus-cling APPEND_STRING PROPERTY LINK_FLAGS ${cling_link_str})
endif(MSVC)

set(XEUS_SEARCH_PATH $<JOIN:$<TARGET_PROPERTY:xeus-cling,INCLUDE_DIRECTORIES>,:>)
target_compile_definitions(xeus-cling PRIVATE "XEUS_SEARCH_PATH=\"${XEUS_SEARCH_PATH}\"")


#########
# Tests #
#########
Expand Down
4 changes: 3 additions & 1 deletion src/xinterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include <llvm/Support/DynamicLibrary.h>

#include <xtl/xsystem.hpp>

#include "xeus-cling/xbuffer.hpp"
#include "xeus-cling/xeus_cling_config.hpp"
#include "xeus-cling/xinterpreter.hpp"
Expand Down Expand Up @@ -428,7 +430,7 @@ namespace xcpp

void interpreter::init_extra_includes()
{
m_interpreter.AddIncludePaths(XEUS_SEARCH_PATH);
m_interpreter.AddIncludePaths(xtl::prefix_path() + "/include/");
}

void interpreter::init_preamble()
Expand Down

0 comments on commit 21b4717

Please sign in to comment.