mirror of
				https://github.com/AlexandreRouma/SDRPlusPlus.git
				synced 2025-10-31 17:08:13 +01:00 
			
		
		
		
	Fix build on Debian 10
This commit is contained in:
		| @@ -6,7 +6,7 @@ if (MSVC) | ||||
|     set(CMAKE_CXX_FLAGS "-O2 /std:c++17") | ||||
|     set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) | ||||
| else() | ||||
|     set(CMAKE_CXX_FLAGS "-O3 -std=c++17 -fpermissive") | ||||
|     set(CMAKE_CXX_FLAGS "-g -O3 -std=c++17 -fpermissive") | ||||
| endif (MSVC) | ||||
| add_definitions(-DSDRPP_IS_CORE) | ||||
|  | ||||
| @@ -75,6 +75,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux") | ||||
|     target_link_libraries(sdrpp_core PUBLIC X11) | ||||
|     target_link_libraries(sdrpp_core PUBLIC Xxf86vm) | ||||
|     target_link_libraries(sdrpp_core PUBLIC dl) | ||||
|     target_link_libraries(sdrpp_core PUBLIC stdc++fs) | ||||
| endif () | ||||
|  | ||||
|  | ||||
| @@ -113,4 +114,4 @@ target_link_libraries(sdrpp_core PUBLIC volk) | ||||
|  | ||||
| set(CORE_FILES ${RUNTIME_OUTPUT_DIRECTORY} PARENT_SCOPE) | ||||
|  | ||||
| # cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/Users/Alex/vcpkg/scripts/buildsystems/vcpkg.cmake" -G "Visual Studio 15 2017 Win64" | ||||
| # cmake .. "-DCMAKE_TOOLCHAIN_FILE=C:/Users/Alex/vcpkg/scripts/buildsystems/vcpkg.cmake" -G "Visual Studio 15 2017 Win64" | ||||
|   | ||||
| @@ -139,7 +139,9 @@ int sdrpp_main() { | ||||
|         glfwMaximizeWindow(window); | ||||
|     } | ||||
|  | ||||
| #if (GLFW_VERSION_MINOR == 3) && (GLFW_VERSION_MINOR >= 2) | ||||
|     glfwSetWindowMaximizeCallback(window, maximized_callback); | ||||
| #endif | ||||
|  | ||||
|     // Load app icon | ||||
|     GLFWimage icons[10]; | ||||
| @@ -300,4 +302,4 @@ int sdrpp_main() { | ||||
|     glfwTerminate(); | ||||
|  | ||||
|     return 0; | ||||
| } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user