Remove the explicit __declspec(dllexport) since that is handles already by CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user