Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ project(synumpy VERSION 1.9.7 LANGUAGES CXX)

include(GNUInstallDirs)

# Automatically export symbols on Windows when building a shared library
if(WIN32 AND BUILD_SHARED_LIBS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()

option(SYNUMPY_BUILD_EXAMPLE "Build the example executable" ON)

add_library(synumpy synumpy.cpp)
Expand Down
4 changes: 2 additions & 2 deletions example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void printShape(const syNumpy::NpyArray& array) {
std::cout << array.shape()[i];
}
std::cout << ")\n";
} // namespace
}

template <typename T>
void printValues(const std::vector<T>& values, const char* label) {
Expand All @@ -69,7 +69,7 @@ void printValues(const std::vector<T>& values, const char* label) {
std::cout << "\n";
}

}
} // namespace

int main() {
try {
Expand Down