Skip to content

Commit 5cf17eb

Browse files
author
Michael Fabian Dirks
committed
Link to debug libraries in Debug builds
1 parent 6a54c4d commit 5cf17eb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

FindCEF.cmake

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ find_path(CEF_INCLUDE_DIR "include/cef_version.h"
88
find_library(CEF_LIBRARY
99
NAMES cef libcef cef.lib libcef.o "Chromium Embedded Framework"
1010
PATHS ${CEF_ROOT_DIR} ${CEF_ROOT_DIR}/Release)
11+
find_library(CEF_LIBRARY_DEBUG
12+
NAMES cef libcef cef.lib libcef.o "Chromium Embedded Framework"
13+
PATHS ${CEF_ROOT_DIR} ${CEF_ROOT_DIR}/Debug)
1114

1215
find_library(CEFWRAPPER_LIBRARY
1316
NAMES cef_dll_wrapper libcef_dll_wrapper
14-
PATHS ${CEF_ROOT_DIR}/build/libcef_dll ${CEF_ROOT_DIR}/build/libcef_dll_wrapper)
17+
PATHS ${CEF_ROOT_DIR}/build/libcef_dll/Release ${CEF_ROOT_DIR}/build/libcef_dll_wrapper/Release)
18+
find_library(CEFWRAPPER_LIBRARY_DEBUG
19+
NAMES cef_dll_wrapper libcef_dll_wrapper
20+
PATHS ${CEF_ROOT_DIR}/build/libcef_dll/Debug ${CEF_ROOT_DIR}/build/libcef_dll_wrapper/Debug)
1521

1622
if (NOT CEF_LIBRARY)
1723
message(FATAL_ERROR "Could not find the CEF shared library" )
@@ -22,8 +28,10 @@ if (NOT CEFWRAPPER_LIBRARY)
2228
endif (NOT CEFWRAPPER_LIBRARY)
2329

2430
set(CEF_LIBRARIES
25-
${CEF_LIBRARY}
26-
${CEFWRAPPER_LIBRARY})
31+
debug ${CEFWRAPPER_LIBRARY_DEBUG}
32+
debug ${CEF_LIBRARY_DEBUG}
33+
optimized ${CEFWRAPPER_LIBRARY}
34+
optimized ${CEF_LIBRARY})
2735

2836
find_package_handle_standard_args(CEF DEFAULT_MSG CEF_LIBRARY
2937
CEFWRAPPER_LIBRARY CEF_INCLUDE_DIR)

0 commit comments

Comments
 (0)