summaryrefslogtreecommitdiffstats
path: root/cmake/Modules/FindLibconfig++.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/FindLibconfig++.cmake')
-rw-r--r--cmake/Modules/FindLibconfig++.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmake/Modules/FindLibconfig++.cmake b/cmake/Modules/FindLibconfig++.cmake
index 865f75078..8dfc5fbe8 100644
--- a/cmake/Modules/FindLibconfig++.cmake
+++ b/cmake/Modules/FindLibconfig++.cmake
@@ -14,13 +14,13 @@ find_path(LIBCONFIG_INCLUDE_DIR libconfig.h++
if (WIN32)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
- find_library(LIBCONFIG_LIBRARY NAMES libconfig.lib
+ find_library(LIBCONFIG_CPP_LIBRARIES NAMES libconfig++.lib
HINTS ${LIBCONFIG_SEARCH_PATH_LIST}
PATH_SUFFIXES lib/x64
DOC "Find the libconfig libraries"
)
elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
- find_library(LIBCONFIG_LIBRARY NAMES libconfig.lib
+ find_library(LIBCONFIG_CPP_LIBRARIES NAMES libconfig++.lib
HINTS ${LIBCONFIG_SEARCH_PATH_LIST}
PATH_SUFFIXES lib/x32
DOC "Find the libconfig libraries"
@@ -40,4 +40,5 @@ set(LIBCONFIG_INCLUDE_DIRS ${LIBCONFIG_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Libconfig++ LIBCONFIG_CPP_LIBRARIES LIBCONFIG_INCLUDE_DIRS)
+
mark_as_advanced(LIBCONFIG_CPP_LIBRARIES LIBCONFIG_INCLUDE_DIRS)