Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
Context not available. | |||||
2 | cmake_minimum_required(VERSION 3.1) | 2 | cmake_minimum_required(VERSION 3.1) | ||
---|---|---|---|---|---|
3 | 3 | | |||
4 | # Setting the name of the main project | 4 | # Setting the name of the main project | ||
5 | project(KMyMoney VERSION "5.0.80") | 5 | project(KMyMoney VERSION "5.0.80" LANGUAGES CXX) | ||
6 | 6 | | |||
7 | # Determine the GIT reference (if we're based on GIT) | 7 | # Determine the GIT reference (if we're based on GIT) | ||
8 | if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git") | 8 | if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git") | ||
Context not available. | |||||
97 | 97 | | |||
98 | # check some include files exists | 98 | # check some include files exists | ||
99 | set(CMAKE_REQUIRED_DEFINITIONS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE) | 99 | set(CMAKE_REQUIRED_DEFINITIONS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE) | ||
100 | include (CheckIncludeFile) | 100 | include (CheckIncludeFileCXX) | ||
101 | check_include_file("unistd.h" HAVE_UNISTD_H) | 101 | check_include_file_cxx("unistd.h" HAVE_UNISTD_H) | ||
102 | check_include_file("pwd.h" HAVE_PWD_H) | 102 | check_include_file_cxx("pwd.h" HAVE_PWD_H) | ||
103 | check_include_file("windows.h" HAVE_WINDOWS_H) | 103 | check_include_file_cxx("windows.h" HAVE_WINDOWS_H) | ||
104 | check_include_file("lmcons.h" HAVE_LMCONS_H) | 104 | check_include_file_cxx("lmcons.h" HAVE_LMCONS_H) | ||
105 | check_include_file("process.h" HAVE_PROCESS_H) | 105 | check_include_file_cxx("process.h" HAVE_PROCESS_H) | ||
106 | 106 | | |||
107 | # include check for members in structs | 107 | # include check for members in structs | ||
108 | include (CheckStructHasMember) | 108 | include (CheckStructHasMember) | ||
Context not available. | |||||
148 | 148 | | |||
149 | unset(LIBOFX_HAVE_CLIENTUID) | 149 | unset(LIBOFX_HAVE_CLIENTUID) | ||
150 | unset(LIBOFX_HAVE_CLIENTUID CACHE) #not doing this will prevent updating below check | 150 | unset(LIBOFX_HAVE_CLIENTUID CACHE) #not doing this will prevent updating below check | ||
151 | check_struct_has_member("struct OfxFiLogin" clientuid ${PATH_TO_LIBOFX_HEADER} LIBOFX_HAVE_CLIENTUID) | 151 | check_struct_has_member("struct OfxFiLogin" clientuid ${PATH_TO_LIBOFX_HEADER} LIBOFX_HAVE_CLIENTUID LANGUAGE CXX) | ||
152 | if(NOT ENABLE_OFXIMPORTER) | 152 | if(NOT ENABLE_OFXIMPORTER) | ||
153 | unset(LIBOFX_FOUND CACHE) | 153 | unset(LIBOFX_FOUND CACHE) | ||
154 | unset(LIBOFX_HAVE_CLIENTUID CACHE) | 154 | unset(LIBOFX_HAVE_CLIENTUID CACHE) | ||
Context not available. |