Skip to content

Commit

Permalink
fix: fix cmake error
Browse files Browse the repository at this point in the history
  • Loading branch information
molingyu committed Sep 4, 2024
1 parent dba7ab6 commit 79e3619
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ file(GLOB LOCALE "./locale/**/*.c")
set(CMAKE_C_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)

add_library(i18n_format SHARED ${SOURCE_FILES} ${GEN_SOURCES_H} ${GEN_SOURCES} ${LOCALE_H} ${LOCALE} ${API_FILES})
add_library(i18n_format ${SOURCE_FILES} ${GEN_SOURCES_H} ${GEN_SOURCES} ${LOCALE_H} ${LOCALE} ${API_FILES})

add_dependencies(i18n_format codeGen)

Expand Down
4 changes: 2 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ set_target_properties(test PROPERTIES
C_EXTENSIONS NO
)

target_link_libraries(test PRIVATE i18n_format)

# Special access to i18n-format internals for testing
target_include_directories(test PRIVATE ${CMAKE_SOURCE_DIR}/src)

Expand All @@ -23,4 +21,6 @@ elseif (APPLE)
target_compile_options(test PRIVATE -ffp-contract=off)
endif ()

target_link_libraries(test PRIVATE i18n_format)

source_group(TREE "${CMAKE_CURRENT_SOURCE_DIR}" PREFIX "" FILES ${i18n_format_TESTS})

0 comments on commit 79e3619

Please sign in to comment.