Skip to content
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ add_compile_definitions(FMT_HEADER_ONLY FMT_UNICODE=0 BEA_ENGINE_STATIC CAPSTONE
if(WIN32)
set(RP_PLAT "win")
add_compile_definitions(NOMINMAX)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
elseif(UNIX)
if(${CMAKE_SYSTEM_NAME} STREQUAL FreeBSD)
set(RP_PLAT "fbsd")
Expand Down Expand Up @@ -45,4 +46,8 @@ add_executable(
if(UNIX)
find_package(Threads)
target_link_libraries(${RP_PLAT} ${CMAKE_THREAD_LIBS_INIT})
if(${RP_PLAT} STREQUAL "rp-osx")
else()
target_link_libraries(${RP_PLAT} -static)
endif()
endif()