Skip to content

Commit

Permalink
Changed to target_link_libraries for older Cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
pawsten committed Oct 15, 2024
1 parent a74e34b commit aec1a0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nettracersrv/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ set(HEADERS
PREPEND(HEADERS_FULL "${CMAKE_CURRENT_LIST_DIR}" ${HEADERS})

add_executable(nettracersrv ${SOURCES_FULL} ${HEADERS_FULL})
target_link_options(nettracersrv PRIVATE -static-libgcc -static-libstdc++)
set(CMAKE_EXE_LINKER_FLAGS " -static")
target_link_libraries(nettracersrv -static-libgcc -static-libstdc++)
target_include_directories(nettracersrv
PRIVATE
"${PROJECT_SOURCE_DIR}/libnettracer/src"
Expand Down

0 comments on commit aec1a0a

Please sign in to comment.