Skip to content

Commit

Permalink
Merge fix windows compilation
Browse files Browse the repository at this point in the history
This PR fixes the windows compilation

Related PR: #415
  • Loading branch information
yhmtsai authored Dec 9, 2019
2 parents b4262c9 + 16420cd commit 9a62eb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,12 @@ endif()
configure_file(${Ginkgo_SOURCE_DIR}/include/ginkgo/config.hpp.in
${Ginkgo_BINARY_DIR}/include/ginkgo/config.hpp @ONLY)

# Load CMake helpers
include(cmake/build_helpers.cmake)
include(cmake/build_type_helpers.cmake)
include(cmake/hip_helpers.cmake)
include(cmake/install_helpers.cmake)

# This is modified from https://gitlab.kitware.com/cmake/community/wikis/FAQ#dynamic-replace
if(MSVC)
if(BUILD_SHARED_LIBS)
Expand All @@ -163,12 +169,6 @@ if(MSVC)
endif()
endif()

# Load CMake helpers
include(cmake/build_helpers.cmake)
include(cmake/build_type_helpers.cmake)
include(cmake/hip_helpers.cmake)
include(cmake/install_helpers.cmake)

# Try to find the third party packages before using our subdirectories
include(cmake/package_helpers.cmake)
ginkgo_find_package(GTest "GTest::GTest;GTest::Main" FALSE 1.8.1)
Expand Down
2 changes: 1 addition & 1 deletion include/ginkgo/core/base/executor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1005,7 +1005,7 @@ using DefaultExecutor = CudaExecutor;
*/
class HipExecutor : public detail::ExecutorBase<HipExecutor>,
public std::enable_shared_from_this<HipExecutor> {
friend class ExecutorBase<HipExecutor>;
friend class detail::ExecutorBase<HipExecutor>;

public:
/**
Expand Down

0 comments on commit 9a62eb3

Please sign in to comment.