mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 18:21:35 +01:00 
			
		
		
		
	Do NOT set visibility to hidden for all targets
only if requested and only for our target use clang-tidy too on CI on cmacos
This commit is contained in:
		
							parent
							
								
									1b3755e6e5
								
							
						
					
					
						commit
						a50af55582
					
				
					 7 changed files with 26 additions and 16 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| set(CPM_DOWNLOAD_VERSION 0.31.0) | ||||
| set(CPM_DOWNLOAD_VERSION 0.31.1) | ||||
| 
 | ||||
| if(CPM_SOURCE_CACHE) | ||||
|   # Expand relative path. This is important if the provided path contains a tilde (~) | ||||
|  |  | |||
|  | @ -5,10 +5,6 @@ endif() | |||
| 
 | ||||
| option(BUILD_SHARED_LIBS "Create shared libraries" YES) | ||||
| 
 | ||||
| # Set default visibility to hidden for all targets | ||||
| set(CMAKE_CXX_VISIBILITY_PRESET hidden) | ||||
| set(CMAKE_VISIBILITY_INLINES_HIDDEN YES) | ||||
| 
 | ||||
| # build the dynamic libraries and executables together at bin directory | ||||
| set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||||
| set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue