Remove the explicit __declspec(dllexport) since that is handles already by CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS

This commit is contained in:
Simon Maertens
2026-05-02 18:05:02 +02:00
parent 7cca0ea223
commit 5a687f4922
2 changed files with 2 additions and 11 deletions
+2 -8
View File
@@ -1,14 +1,8 @@
#ifndef CBLAS_GLOBALS_H
#define CBLAS_GLOBALS_H
#if defined(_WIN32)
#if defined(CBLAS_DLL_EXPORTS)
#define CBLAS_GLOBAL_SYMBOL __declspec(dllexport)
#elif defined(CBLAS_DLL_IMPORTS)
#define CBLAS_GLOBAL_SYMBOL __declspec(dllimport)
#else
#define CBLAS_GLOBAL_SYMBOL
#endif
#if defined(CBLAS_DLL_IMPORTS)
#define CBLAS_GLOBAL_SYMBOL __declspec(dllimport)
#else
#define CBLAS_GLOBAL_SYMBOL
#endif
-3
View File
@@ -119,9 +119,6 @@ list(REMOVE_DUPLICATES SOURCES)
add_library(${CBLASLIB}_obj OBJECT ${SOURCES})
set_target_properties(${CBLASLIB}_obj PROPERTIES POSITION_INDEPENDENT_CODE ON)
if(WIN32 AND BUILD_SHARED_LIBS)
target_compile_definitions(${CBLASLIB}_obj PRIVATE CBLAS_DLL_EXPORTS)
endif()
if(HAS_ATTRIBUTE_WEAK_SUPPORT)
target_compile_definitions(${CBLASLIB}_obj PRIVATE HAS_ATTRIBUTE_WEAK_SUPPORT)
endif()