mirror of
				https://github.com/MariaDB/server.git
				synced 2025-11-03 20:36:16 +01:00 
			
		
		
		
	Compiler warnings generated on building MariaDB server for BSD has the same
reason as in case building is performed on MacOS. Both platforms do use
clang as a C/C++ compiler. So, fix the compiler warnings in case the compiler
is clang doesn't matter what kind of building platform do we use for building.
This is a follow-up patch for the following bug reports:
  MDEV-23564: CMAKE failing due to deprecated Apple GSS method
  MDEV-23935: Fix warnings generated during compilation of
              plugin/auth_pam/testing/pam_mariadb_mtr.c on MacOS
		
	
			
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			592 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			592 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
#  gcc pam_mariadb_mtr.c -shared -lpam -fPIC -o pam_mariadb_mtr.so
 | 
						|
 | 
						|
ADD_LIBRARY(pam_mariadb_mtr MODULE pam_mariadb_mtr.c)
 | 
						|
SET_TARGET_PROPERTIES (pam_mariadb_mtr PROPERTIES PREFIX "")
 | 
						|
TARGET_LINK_LIBRARIES(pam_mariadb_mtr pam)
 | 
						|
 | 
						|
IF(CMAKE_C_COMPILER_ID MATCHES "Clang")
 | 
						|
  SET_SOURCE_FILES_PROPERTIES(
 | 
						|
    pam_mariadb_mtr.c
 | 
						|
    PROPERTY COMPILE_FLAGS "-Wno-incompatible-pointer-types-discards-qualifiers")
 | 
						|
ENDIF()
 | 
						|
 | 
						|
SET(dest DESTINATION "${INSTALL_MYSQLTESTDIR}/suite/plugins/pam" COMPONENT Test)
 | 
						|
INSTALL(TARGETS pam_mariadb_mtr ${dest})
 | 
						|
INSTALL(FILES mariadb_mtr.conf RENAME mariadb_mtr ${dest})
 |