From 2be1f55dfda5a07bff361e3b6050fd3258b222db Mon Sep 17 00:00:00 2001 From: Jelle Spijker Date: Tue, 12 Apr 2022 10:42:12 +0200 Subject: [PATCH] Removed obsolete Export Header Already taken care with the target_include_directories Contributes to CURA-8640 --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f399dec..0ce1b1a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,7 @@ AssureOutOfSourceBuilds() include(CMakePackageConfigHelpers) include(GenerateExportHeader) +generate_export_header(Arcus EXPORT_FILE_NAME src/ArcusExport.h) option(BUILD_PYTHON "Build " ON) option(BUILD_EXAMPLES "Build the example programs" OFF) @@ -73,13 +74,6 @@ set_target_properties(Arcus PROPERTIES VISIBILITY_INLINES_HIDDEN 1 ) -generate_export_header(Arcus - EXPORT_FILE_NAME src/ArcusExport.h -) -# This is required when building out-of-tree. -# The compiler won't find the generated header otherwise. -include_directories(${CMAKE_BINARY_DIR}/src) - if(BUILD_EXAMPLES) add_subdirectory(examples) endif()