Skip to content

Commit

Permalink
win warn fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tmori committed Dec 29, 2024
1 parent 411aa42 commit f5166fb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions src/hakoc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -63,22 +63,29 @@ add_library(
hakoarun
src/hako_asset_runner.cpp
)
if (NOT WIN32)
set(PTHREAD_LIB -pthread)
else()
set(PTHREAD_LIB "")
endif()

# 各ターゲットに適用
target_link_libraries(
hakoc
hako
-pthread
${PTHREAD_LIB}
)

target_link_libraries(
shakoc
-pthread
${PTHREAD_LIB}
${HAKO_PYTHON_LIBS}
)

target_link_libraries(
hakoarun
hako
-pthread
${PTHREAD_LIB}
)

target_include_directories(
Expand Down

0 comments on commit f5166fb

Please sign in to comment.