Skip to content

Commit

Permalink
fix: cannot link libcef libraries
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan <[email protected]>
  • Loading branch information
nmgwddj committed Oct 14, 2024
1 parent e39dd3b commit 7f2ec7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,6 @@ add_subdirectory(nim_win_demo)
add_subdirectory(tool_kits/uninstall)
add_subdirectory(tool_kits/install)

add_dependencies(nim_demo cef_render uninstall)
add_dependencies(nim_demo render uninstall)

set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT nim_demo)
3 changes: 1 addition & 2 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
"description": "Conan v2 with CMake example for Windows - Release Configuration",
"binaryDir": "${sourceDir}/build",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release",
"CMAKE_INSTALL_PREFIX": "${sourceDir}/win32-release"
"CMAKE_BUILD_TYPE": "Release"
}
}
],
Expand Down
6 changes: 1 addition & 5 deletions tool_kits/cef/cef_render/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,8 @@ TARGET_LINK_LIBRARIES(${TARGET_NAME}
libcef_dll_wrapper
cef_module
${THIRD_PARTY_LIBS}
${CONAN_LIBS_LIBCEF}
)
IF (CMAKE_BUILD_TYPE MATCHES "Release")
TARGET_LINK_LIBRARIES(${TARGET_NAME} nim_libcef)
ELSE ()
TARGET_LINK_LIBRARIES(${TARGET_NAME} nim_libcef_d)
ENDIF ()

SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
FOLDER ${GROUP_UI_COMPONENTS}
Expand Down

0 comments on commit 7f2ec7a

Please sign in to comment.