From d11c412f953774bf5b0747815c67f6b6e759d4c8 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 28 Aug 2023 15:19:55 +0200 Subject: CMake: Make compile definitions 'FL_LIBRARY' and 'FL_DLL' private ... so they are not inherited by consumers of the library. Remove 'add_definitions(-DFL_LIBRARY)' from src/CMakeLists.txt This is not necessary, see CMake/fl_add_library.cmake Don't set obsolete property 'CLEAN_DIRECT_OUTPUT' which was removed in CMake 2.8.0. --- src/CMakeLists.txt | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 681aac2cd..9f1a578b8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -580,8 +580,6 @@ if (WIN32) list (APPEND STATIC_FILES fl_call_main.c) endif (WIN32) -add_definitions(-DFL_LIBRARY) - ####################################################################### # prepare optional libs for shared and static FLTK libraries -- cgit v1.2.3