Skip to content

Commit

Permalink
Merge pull request #23 from speedy-h/link_option
Browse files Browse the repository at this point in the history
Moved link time build options out of compile time options
  • Loading branch information
SimonCahill authored Feb 12, 2024
2 parents 8b99489 + 1d4f755 commit 34fa61a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ target_compile_options(
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
target_compile_options(isotp PUBLIC -O0 -g) # don't optimise and add debugging symbols
else()
target_compile_options(isotp PUBLIC -O2 -s) # optimise code and strip the library
target_compile_options(isotp PUBLIC -O2) # optimise code
target_link_libraries(isotp PUBLIC -s) # strip the library
endif()

if (isotpc_USE_INCLUDE_DIR)
Expand Down

0 comments on commit 34fa61a

Please sign in to comment.