mirror of
				https://github.com/TheLartians/ModernCppStarter.git
				synced 2025-10-31 02:01:33 +01:00 
			
		
		
		
	Respect CMAKE_DEBUG_POSTFIX setup
This commit is contained in:
		
							parent
							
								
									d81a42450c
								
							
						
					
					
						commit
						0bb3325679
					
				
					 3 changed files with 5 additions and 6 deletions
				
			
		
							
								
								
									
										6
									
								
								.github/workflows/standalone.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/standalone.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -32,5 +32,7 @@ jobs: | ||||||
|       - name: build |       - name: build | ||||||
|         run: cmake --build build -j4 |         run: cmake --build build -j4 | ||||||
| 
 | 
 | ||||||
|       - name: run |       - name: test | ||||||
|         run: ./build/Greeter |         run: | | ||||||
|  |           cd build | ||||||
|  |           ctest --build-config Debug | ||||||
|  |  | ||||||
							
								
								
									
										2
									
								
								.github/workflows/windows.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/windows.yml
									
										
									
									
										vendored
									
									
								
							|  | @ -28,7 +28,7 @@ jobs: | ||||||
|           key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} |           key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} | ||||||
| 
 | 
 | ||||||
|       - name: configure |       - name: configure | ||||||
|         run: cmake -S test -B build -G "Visual Studio 17 2022" -D BUILD_SHARED_LIBS=NO |         run: cmake -S test -B build  #  -G "Visual Studio 17 2022" -D BUILD_SHARED_LIBS=NO | ||||||
| 
 | 
 | ||||||
|       - name: build |       - name: build | ||||||
|         run: cmake --build build --config Debug -j4 |         run: cmake --build build --config Debug -j4 | ||||||
|  |  | ||||||
|  | @ -43,9 +43,6 @@ endif() | ||||||
| target_link_libraries(${PROJECT_NAME} Greeter::Greeter cxxopts::cxxopts) | target_link_libraries(${PROJECT_NAME} Greeter::Greeter cxxopts::cxxopts) | ||||||
| set_target_properties(${PROJECT_NAME} PROPERTIES UNITY_BUILD ${OPTION_ENABLE_UNITY}) | set_target_properties(${PROJECT_NAME} PROPERTIES UNITY_BUILD ${OPTION_ENABLE_UNITY}) | ||||||
| 
 | 
 | ||||||
| # TODO(CK): why is this used? This overrides the CMAKE_DEBUG_POSTFIX! |  | ||||||
| set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME Greeter) |  | ||||||
| 
 |  | ||||||
| # --- Test it --- | # --- Test it --- | ||||||
| 
 | 
 | ||||||
| enable_testing() | enable_testing() | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue