FLTK logo

[master] 576f7bb - Enable 'shadow_variables' test on macOS using AppleClang

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 576f7bb - Enable 'shadow_variables' test on macOS using AppleClang "Albrecht Schlosser" 08:02 Apr 22  
 
commit 576f7bb9cca487cd7ffb2d3ebbb3cde3e01228df
Author:     Albrecht Schlosser <albrechts.fltk@online.de>
AuthorDate: Mon Apr 22 16:54:25 2024 +0200
Commit:     Albrecht Schlosser <albrechts.fltk@online.de>
CommitDate: Mon Apr 22 16:54:25 2024 +0200

    Enable 'shadow_variables' test on macOS using AppleClang
    
    The CMake compiler ID on macOS is AppleClang rather than Clang.
    This commit checks for this compiler ID as well.

 test/CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git test/CMakeLists.txt test/CMakeLists.txt
index 3a1db70..05d090f 100644
--- test/CMakeLists.txt
+++ test/CMakeLists.txt
@@ -234,7 +234,10 @@ endif(OPENGL_FOUND)
 #   Its sole purpose is to issue compilation warnings during build time if
 #   variables are shadowed in public headers.
 
-if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+fl_debug_var(CMAKE_CXX_COMPILER_ID)
+if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR
+   CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
+   CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
 
   set(include_all "${CMAKE_CURRENT_BINARY_DIR}/include_all.h")
   file(WRITE ${include_all} "/* DO NOT EDIT - this file is created by CMake */\n")
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.