Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
SoilRos authored Oct 1, 2024
1 parent f13ac32 commit 1fad6a6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ project(memstats LANGUAGES C CXX)
find_package(TBB)
find_package(Threads)

add_library(memstats memstats.cc)
if(MINGW)
add_library(memstats SHARED)
else()
add_library(memstats)
endif()
target_sources(memstats memstats.cc)
target_link_libraries(memstats PRIVATE $<TARGET_NAME_IF_EXISTS:TBB::tbb> $<TARGET_NAME_IF_EXISTS:Threads::Threads>)

include(GNUInstallDirs)
Expand Down

0 comments on commit 1fad6a6

Please sign in to comment.