Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Fix broken Linux and Windows builds
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 3 Oct 2020 17:16:48 +0000 (18:16 +0100)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sat, 3 Oct 2020 19:36:44 +0000 (20:36 +0100)
source/CMakeFunctions/Application.cmake
source/CMakeFunctions/Packages.cmake
source/tools/CMakeLists.txt

index d3b44f7..aa8393d 100644 (file)
@@ -62,12 +62,12 @@ if (MSVC)
                           security
                           cryptui
                           crypt32)
-endif()
-
-if (MSVC)
     list(APPEND FILE_LIST os/msw/xestiaab.rc)
+                          
     add_executable(xestiaab WIN32
-        ${FILE_LIST})
+                   ${FILE_LIST})
+    target_link_libraries(xestiaab LINK_PUBLIC
+                          ${LIBRARIES})
 elseif(APPLE)
     # Main icons
     set_source_files_properties(os/osx/XestiaAddressBook.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
@@ -116,6 +116,9 @@ elseif(APPLE)
 else()
     add_executable(xestiaab
         ${FILE_LIST})
+
+    target_link_libraries(xestiaab LINK_PUBLIC
+                          ${LIBRARIES})
 endif()
 
 
index c42d5b5..381684f 100644 (file)
@@ -13,7 +13,7 @@ if (APPLE)
     endif()
 endif()
 
-if(!APPLE)
+if(NOT APPLE)
     find_package(Iconv REQUIRED)
     include_directories(${Iconv_INCLUDE_DIR})
 endif()
index 8f1e901..fb9e8b8 100644 (file)
@@ -2,16 +2,22 @@ add_executable(bitmapcode
     bitmapcode.cpp)
 
 if (MSVC)
-add_custom_command(
-    TARGET bitmapcode
-    POST_BUILD
-    COMMAND $(OutDir)/bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps)
+    add_custom_command(
+        TARGET bitmapcode
+        POST_BUILD
+        COMMAND $(OutDir)/bitmapcode ${CMAKE_SOURCE_DIR}/bitmaps)
+endif()
+
+if (APPLE)
+    target_link_libraries(bitmapcode
+        LINK_PUBLIC
+        c++
+        ${wxWidgets_LIBRARIES})
+else()
+    target_link_libraries(bitmapcode
+        LINK_PUBLIC
+        ${wxWidgets_LIBRARIES})
 endif()
-    
-target_link_libraries(bitmapcode
-    LINK_PUBLIC
-    c++
-    ${wxWidgets_LIBRARIES})
 
 set (sources 
     odthelpbrowser/base64.cpp
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy