summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2012-12-07 03:02:15 -0500
committerNaram Qashat <cyberbotx@cyberbotx.com>2012-12-07 03:02:15 -0500
commit9dec0936761055abc9f4650ce4bd60b19aa2b328 (patch)
tree7dc560e8e6668ba1d587ddebe0b162cbd2957be6 /cmake
parentf711dd3460f15027c756805aa4339a108bcf812b (diff)
Modified the Config scripts to ask the user explicitly for additional include and library directories.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Anope.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Anope.cmake b/cmake/Anope.cmake
index d0846a0b1..3f49dd650 100644
--- a/cmake/Anope.cmake
+++ b/cmake/Anope.cmake
@@ -447,9 +447,9 @@ macro(calculate_libraries SRC SKIP VERBOSE SRC_LDFLAGS EXTRA_DEPENDS)
foreach(LIBRARY ${REQUIRED_LIBRARY})
# Locate the library to see if it exists
if(DEFAULT_LIBRARY_DIRS OR WSDK_PATH OR DEFINED $ENV{VCINSTALLDIR})
- find_library(FOUND_${LIBRARY}_LIBRARY NAMES ${LIBRARY} PATHS ${DEFAULT_LIBRARY_DIRS} ${WSDK_PATH}/lib $ENV{VCINSTALLDIR}/lib ${EXTRA_INCLUDE})
+ find_library(FOUND_${LIBRARY}_LIBRARY NAMES ${LIBRARY} PATHS ${DEFAULT_LIBRARY_DIRS} ${WSDK_PATH}/lib $ENV{VCINSTALLDIR}/lib ${EXTRA_INCLUDE} ${EXTRA_LIBS})
else(DEFAULT_LIBRARY_DIRS OR WSDK_PATH OR DEFINED $ENV{VCINSTALLDIR})
- find_library(FOUND_${LIBRARY}_LIBRARY NAMES ${LIBRARY} ${EXTRA_INCLUDE})
+ find_library(FOUND_${LIBRARY}_LIBRARY NAMES ${LIBRARY} ${EXTRA_INCLUDE} ${EXTRA_LIBS})
endif(DEFAULT_LIBRARY_DIRS OR WSDK_PATH OR DEFINED $ENV{VCINSTALLDIR})
# If the library was found, we will add it to the linker flags
if(FOUND_${LIBRARY}_LIBRARY)