From 9ab3c97c44ae90934adebaab133533356596721e Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Tue, 13 Feb 2024 16:18:25 +0100 Subject: [PATCH] don't include rc file on platforms other than windows --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f3fe404..470b17cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -287,7 +287,12 @@ if (OPT_BUILD_SCHEDULER) add_subdirectory("misc_modules/scheduler") endif (OPT_BUILD_SCHEDULER) -add_executable(sdrpp "src/main.cpp" "win32/resources.rc") +if (MSVC) + add_executable(sdrpp "src/main.cpp" "win32/resources.rc") +else () + add_executable(sdrpp "src/main.cpp") +endif () + target_link_libraries(sdrpp PRIVATE sdrpp_core) # Compiler arguments