Skip to content

Commit

Permalink
Update staq_msvc_pthread.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoftco committed Nov 30, 2023
1 parent 716b1c3 commit 610c5fc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
build:
strategy:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
# os: [ windows-latest ]
# os: [ ubuntu-latest, macos-latest, windows-latest ]
os: [ windows-latest ]
runs-on: ${{ matrix.os }}

steps:
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ if (STAQ_INSTALL_SOURCES)
INSTALL_DESTINATION "lib/cmake/${PROJECT_NAME}"
)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/staqConfig.cmake" DESTINATION "lib/cmake/${PROJECT_NAME}")
install(FILES "${CMAKE_SOURCE_DIR}/cmake/staq_msvc_pthread.cmake" DESTINATION "lib/cmake/${PROJECT_NAME}")
install(FILES "${CMAKE_SOURCE_DIR}/cmake/staq_msvc.cmake" DESTINATION "lib/cmake/${PROJECT_NAME}")
endif ()

#### Uninstall
Expand Down
2 changes: 1 addition & 1 deletion cmake/staqConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@PACKAGE_INIT@

set(STAQ_INSTALL_DIR "@STAQ_INSTALL_DIR@")
include("${CMAKE_CURRENT_LIST_DIR}/staq_msvc_pthread.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/staq_msvc.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/staq_targets.cmake")
message(STATUS "Found staq's source code in @STAQ_INSTALL_DIR@")
9 changes: 9 additions & 0 deletions cmake/staq_msvc.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#### MSVC lack of pthread.h
if (MSVC)
include_directories(SYSTEM ${STAQ_INSTALL_DIR}/third_party/pthreadwin32)
endif ()

#### MSVC bigobj
if (MSVC)
add_compile_options(-bigobj)
endif ()
4 changes: 0 additions & 4 deletions cmake/staq_msvc_pthread.cmake

This file was deleted.

0 comments on commit 610c5fc

Please sign in to comment.