DELBERGUE Guillaume

Need to be static on Windows to avoid symbol problems

Contrary  to ELF, a DLL can't have unresolved symbols

Signed-off-by: Guillaume Delbergue <guillaume.delbergue@greensocs.com>
... ... @@ -71,9 +71,11 @@ INCLUDE_DIRECTORIES(${INCLUDE_DIRS})
set(CMAKE_CXX_FLAGS "-ggdb -Wall -Werror -DSC_INCLUDE_DYNAMIC_PROCESSES")
ADD_LIBRARY(pl190 SHARED
src/PL190.cpp
)
if(MINGW)
add_library(pl190 STATIC src/PL190.cpp)
else()
add_library(pl190 SHARED src/PL190.cpp)
endif()
TARGET_LINK_LIBRARIES(pl190 ${GREENLIB_LIBRARIES})
... ...