mirror of
				https://git.libssh.org/projects/libssh.git
				synced 2025-10-30 12:05:33 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			680 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			680 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| # Always include srcdir and builddir in include path
 | |
| # This saves typing ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY} in
 | |
| # about every subdir
 | |
| # since cmake 2.4.0
 | |
| set(CMAKE_INCLUDE_CURRENT_DIR ON)
 | |
| 
 | |
| # Put the include dirs which are in the source or build tree
 | |
| # before all other include dirs, so the headers in the sources
 | |
| # are prefered over the already installed ones
 | |
| # since cmake 2.4.1
 | |
| set(CMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE ON)
 | |
| 
 | |
| # Use colored output
 | |
| # since cmake 2.4.0
 | |
| set(CMAKE_COLOR_MAKEFILE ON)
 | |
| 
 | |
| # Create the compile command database for clang by default
 | |
| set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
 | |
| 
 | |
| # Always build with -fPIC
 | |
| set(CMAKE_POSITION_INDEPENDENT_CODE ON)
 |