File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,11 @@ add_executable(runtime ${CMAKE_CURRENT_BINARY_DIR}/runtime.4.o notify.c)
110110# CMake gets confused by the .o object, therefore we need to tell it that it shall link everything using the C compiler
111111set_property (TARGET runtime PROPERTY LINKER_LANGUAGE C)
112112target_link_libraries (runtime PRIVATE libsquashfuse dl xz libzlib pthread libappimage_shared libappimage_hashlib)
113- target_link_options (runtime PRIVATE ${runtime_ldflags} )
113+ if (COMMAND target_link_options)
114+ target_link_options (runtime PRIVATE ${runtime_ldflags} )
115+ else ()
116+ set_property (TARGET runtime PROPERTY LINK_FLAGS ${runtime_ldflags} )
117+ endif ()
114118target_include_directories (runtime PRIVATE ${PROJECT_SOURCE_DIR} /include )
115119
116120if (BUILD_DEBUG)
You can’t perform that action at this time.
0 commit comments