Changed strategy for setting preprocessor definitions.
Instead of generating separate object files for each permutation of defines for a source file, GenerateNamedObjects now writes an entirely new source file and inserts the defines as #define c statements. This solves a problem I ran into with ar.exe where it was refusing to link objects that had the same filename despite having different paths.
This commit is contained in:
@@ -117,5 +117,4 @@ if (NOT DEFINED NO_LAPACK)
|
||||
GenerateNamedObjects("${LAPACK_MANGLED_SOURCES}" "" "" 0 "" "" 0 3)
|
||||
endif ()
|
||||
|
||||
set(DBLAS_OBJS ${DBLAS_OBJS} PARENT_SCOPE) # list append removes the scope from DBLAS_OBJS
|
||||
|
||||
add_library(interface OBJECT ${OPENBLAS_SRC})
|
||||
|
||||
Reference in New Issue
Block a user