From 267694dbbce38921f0a988e6b56bef7b2c71f089 Mon Sep 17 00:00:00 2001 From: Srivatsan Iyer Date: Wed, 18 Nov 2020 22:08:04 +0530 Subject: [PATCH] Fix #include for example_with_all. Using relative directories like "../build/crow_all.h" might not work in all settings. --- CMakeLists.txt | 1 + examples/example_with_all.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 09deeb5cf..b6eae887f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,6 +41,7 @@ set(PROJECT_INCLUDE_DIR include_directories("${PROJECT_INCLUDE_DIR}") include_directories("${PROJECT_SOURCE_DIR}") +include_directories("${CMAKE_CURRENT_BINARY_DIR}") # To include crow_all.h add_subdirectory(examples) diff --git a/examples/example_with_all.cpp b/examples/example_with_all.cpp index b0c917ae5..9661e7546 100644 --- a/examples/example_with_all.cpp +++ b/examples/example_with_all.cpp @@ -1,4 +1,4 @@ -#include "../build/crow_all.h" +#include "crow_all.h" #include