Skip to content

Commit 9ab3c97

Browse files
don't include rc file on platforms other than windows
1 parent edc08dd commit 9ab3c97

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,12 @@ if (OPT_BUILD_SCHEDULER)
287287
add_subdirectory("misc_modules/scheduler")
288288
endif (OPT_BUILD_SCHEDULER)
289289

290-
add_executable(sdrpp "src/main.cpp" "win32/resources.rc")
290+
if (MSVC)
291+
add_executable(sdrpp "src/main.cpp" "win32/resources.rc")
292+
else ()
293+
add_executable(sdrpp "src/main.cpp")
294+
endif ()
295+
291296
target_link_libraries(sdrpp PRIVATE sdrpp_core)
292297

293298
# Compiler arguments

0 commit comments

Comments
 (0)