Skip to content

Commit

Permalink
Statically link VCRUNTIME
Browse files Browse the repository at this point in the history
  • Loading branch information
widberg committed Nov 27, 2023
1 parent 0377280 commit e84623c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ option(FMTK_DOCS "Build the documentation." OFF)
set(CMAKE_CXX_STANDARD 17 CACHE INTERNAL "")
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE INTERNAL "")
add_definitions(-DUNICODE -D_UNICODE)
add_compile_options("/clang:-fdebug-prefix-map=${PROJECT_SOURCE_DIR}=.")
add_compile_options("/clang:-fdebug-prefix-map=${PROJECT_SOURCE_DIR}=." "/MT$<$<CONFIG:Debug>:d>")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake" CACHE INTERNAL "")
set_property(GLOBAL PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" CACHE INTERNAL "")

find_package(FUEL)
add_subdirectory(dependencies)
Expand Down
3 changes: 2 additions & 1 deletion dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ add_subdirectory(d3d9 SYSTEM)
add_subdirectory(discord_game_sdk SYSTEM)

# LuaJIT
set(BUILD_SHARED_LIBS ON CACHE PATH "LuaJIT Shared")
set(BUILD_SHARED_LIBS ON CACHE PATH "LuaJIT Shared" FORCE)
set(LUAJIT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/LuaJIT" CACHE PATH "LuaJIT directory")
add_subdirectory(luajit-cmake SYSTEM)
set_target_properties(libluajit PROPERTIES OUTPUT_NAME "lua5.1")
set(BUILD_SHARED_LIBS OFF CACHE PATH "" FORCE)

# re2c
if(NOT TARGET re2c)
Expand Down

0 comments on commit e84623c

Please sign in to comment.