Last active
June 2, 2024 09:04
-
-
Save dadencukillia/289eb5e65ca1a8851363edff4ca6d837 to your computer and use it in GitHub Desktop.
C++ CMake static linking
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(BUILD_SHARED_LIBS FALSE) | |
target_link_options(${PROJECT_NAME} PRIVATE -static-libgcc -static-libstdc++ -static) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment