Skip to content

Commit

Permalink
add static link on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tjira committed Feb 11, 2024
1 parent 67fd126 commit be69b72
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_FLAGS_DEBUG "-g -pg -Og -fprofile-arcs -ftest-coverage -Wall -Wextra")
set(CMAKE_CXX_FLAGS_RELEASE "-mavx -s -O3")

# static link on windows
if (WIN32)
string(APPEND CMAKE_CXX_FLAGS_RELEASE " -static")
string(APPEND CMAKE_CXX_FLAGS_DEBUG " -static")
endif()

# set glfw cmake flags
set(GLFW_BUILD_EXAMPLES OFF)
set(GLFW_BUILD_TESTS OFF)
Expand Down

0 comments on commit be69b72

Please sign in to comment.