forked from compiler-research/xeus-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch XEUS_SEARCH_PATH from compile-time to runtime
This change: 1. Replaces compile-time XEUS_SEARCH_PATH define with runtime environment variable 2. Removes CMake definition to eliminate redefinition warnings 3. Adds test to verify non-standard include path functionality 4. Makes include path configuration more flexible (can be changed without recompiling) Resolves compiler-research#175
- Loading branch information
1 parent
3050471
commit 71cd1ec
Showing
4 changed files
with
38 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef TEST_HEADER_HPP | ||
#define TEST_HEADER_HPP | ||
|
||
namespace test_ns { | ||
constexpr int test_value = 42; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include <doctest/doctest.h> | ||
#include <string> | ||
#include "test_header.hpp" | ||
|
||
TEST_CASE("Test non-standard include paths") | ||
{ | ||
CHECK(test_ns::test_value == 42); | ||
} |