diff --git a/src/xtd/CMakeLists.txt b/src/xtd/CMakeLists.txt index 74cc77e546e6..16cbc9b63fd4 100644 --- a/src/xtd/CMakeLists.txt +++ b/src/xtd/CMakeLists.txt @@ -7,16 +7,13 @@ include(../../scripts/cmake/xtd_version.cmake) add_include_directories(include) include(references.cmake) -if (XTD_BUILD_LIBRARIES_XTD_FORMS AND XTD_BUILD_LIBRARIES_XTD_DRAWING AND XTD_BUILD_LIBRARIES_XTD_CORE) - add_definitions(-D__SYSTEM__REPORT__=1) - set(SYSTEM_REPORT_FILES include/xtd/system_report.h include/xtd/system_report src/xtd/system_report.cpp) -endif () - add_sources( include/xtd/xtd include/xtd/xtd include/xtd/xtd.h - ${SYSTEM_REPORT_FILES} + include/xtd/system_report.h + include/xtd/system_report + src/xtd/system_report.cpp ) target_type(${XTD_LIBRARY_TYPE})