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:
Hank Anderson
2015-02-24 12:26:33 -06:00
parent 12d1fb2e40
commit 0d8e227ea7
8 changed files with 30 additions and 39 deletions

View File

@@ -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})