mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	CMakeLists: Use PROJECT_SOURCE_DIR instead of CMAKE_SOURCE_DIR
This is more localized to what we want to enforce directory-wise with the project. CMAKE_SOURCE_DIR indicates the root of the source tree, but this would cause the wrong behavior if someone included yuzu as part of a larger buildsystem (for whatever reason). Instead, we want to use the directory where the "project(yuzu)" command was declared as the root path reference.
This commit is contained in:
		
							parent
							
								
									f3ee5feb02
								
							
						
					
					
						commit
						9f6c1b058a
					
				
					 3 changed files with 26 additions and 26 deletions
				
			
		|  | @ -140,15 +140,15 @@ set(UIS | |||
| ) | ||||
| 
 | ||||
| file(GLOB COMPAT_LIST | ||||
|      ${CMAKE_BINARY_DIR}/dist/compatibility_list/compatibility_list.qrc | ||||
|      ${CMAKE_BINARY_DIR}/dist/compatibility_list/compatibility_list.json) | ||||
| file(GLOB_RECURSE ICONS ${CMAKE_SOURCE_DIR}/dist/icons/*) | ||||
| file(GLOB_RECURSE THEMES ${CMAKE_SOURCE_DIR}/dist/qt_themes/*) | ||||
|      ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.qrc | ||||
|      ${PROJECT_BINARY_DIR}/dist/compatibility_list/compatibility_list.json) | ||||
| file(GLOB_RECURSE ICONS ${PROJECT_SOURCE_DIR}/dist/icons/*) | ||||
| file(GLOB_RECURSE THEMES ${PROJECT_SOURCE_DIR}/dist/qt_themes/*) | ||||
| 
 | ||||
| qt5_wrap_ui(UI_HDRS ${UIS}) | ||||
| 
 | ||||
| if (ENABLE_QT_TRANSLATION) | ||||
|     set(CITRA_QT_LANGUAGES "${CMAKE_SOURCE_DIR}/dist/languages" CACHE PATH "Path to the translation bundle for the Qt frontend") | ||||
|     set(CITRA_QT_LANGUAGES "${PROJECT_SOURCE_DIR}/dist/languages" CACHE PATH "Path to the translation bundle for the Qt frontend") | ||||
|     option(GENERATE_QT_TRANSLATION "Generate en.ts as the translation source file" OFF) | ||||
| 
 | ||||
|     # Update source TS file if enabled | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue