diff options
Diffstat (limited to 'libbridge/CMakeLists.txt')
| -rw-r--r-- | libbridge/CMakeLists.txt | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/libbridge/CMakeLists.txt b/libbridge/CMakeLists.txt index a227c49..3d87455 100644 --- a/libbridge/CMakeLists.txt +++ b/libbridge/CMakeLists.txt @@ -4,6 +4,18 @@ message(STATUS ABI_INFO = ${HOST_ABI}) set (CMAKE_CXX_STANDARD 11) +if(${HOST_ABI} STREQUAL "x86_64-w64-mingw32") + set(CMAKE_SYSTEM_NAME Windows) + set(CMAKE_LINKER "x86_64-w64-mingw32-ld") + set(TARGET "x86_64-w64-mingw32") + # set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) +elseif(${HOST_ABI} STREQUAL "i686-w64-mingw32") + set(CMAKE_SYSTEM_NAME Windows) + set(CMAKE_LINKER "i686-w64-mingw32-ld") + set(TARGET "i686-w64-mingw32") + # set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON) +endif() + add_library( wallet2_api_c SHARED src/main/cpp/helpers.cpp @@ -48,16 +60,6 @@ else() set(BOOST_WTF_PART "") endif() -if(${HOST_ABI} STREQUAL "x86_64-w64-mingw32") - set(CMAKE_SYSTEM_NAME Windows) - set(CMAKE_LINKER "x86_64-w64-mingw32-ld") - set(TARGET "x86_64-w64-mingw32") -elseif(${HOST_ABI} STREQUAL "i686-w64-mingw32") - set(CMAKE_SYSTEM_NAME Windows) - set(CMAKE_LINKER "i686-w64-mingw32-ld") - set(TARGET "i686-w64-mingw32") -endif() - add_library(boost_chrono STATIC IMPORTED) set_target_properties(boost_chrono PROPERTIES IMPORTED_LOCATION |
