Skip to content

Commit

Permalink
Merge branch 'hotfix/v2.1.2' into Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordonbc committed May 24, 2024
2 parents 7dbe088 + 810cea0 commit 4776144
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions HarmonyLinkLib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# limitations under the License.

cmake_minimum_required(VERSION 3.10)
project(HarmonyLinkLib VERSION 2.1.1)
project(HarmonyLinkLib VERSION 2.1.2)

include(FetchContent)

Expand Down Expand Up @@ -92,11 +92,6 @@ set(COMMON_INCLUDES
"src/Utilities.h"
)

# Adding fmt headers explicitly
set(FMT_HEADERS
"${fmt_SOURCE_DIR}/include/fmt"
)

set(WINDOWS_SOURCES
"src/Platform/Windows/WindowsUtilities.cpp"
)
Expand Down Expand Up @@ -166,9 +161,6 @@ target_include_directories(HarmonyLinkLibStatic
)
target_compile_definitions(HarmonyLinkLibStatic PRIVATE HARMONYLINKLIB_STATIC)

# Include fmt headers
target_include_directories(HarmonyLinkLibStatic PRIVATE ${FMT_HEADERS})

# Set output directories for all build types
foreach(TYPE IN ITEMS DEBUG RELEASE)
string(TOUPPER ${TYPE} TYPE_UPPER)
Expand All @@ -182,8 +174,9 @@ foreach(TYPE IN ITEMS DEBUG RELEASE)
)
endforeach()

target_link_libraries(HarmonyLinkLibStatic PRIVATE fmt)
target_link_libraries(HarmonyLinkLibShared PRIVATE fmt)
# Link fmt to HarmonyLinkLib
target_link_libraries(HarmonyLinkLibStatic PRIVATE fmt::fmt-header-only)
target_link_libraries(HarmonyLinkLibShared PRIVATE fmt::fmt-header-only)

if (UNIX)
target_link_libraries(HarmonyLinkLibStatic PRIVATE stdc++fs)
Expand Down

0 comments on commit 4776144

Please sign in to comment.