diff options
author | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-03-19 16:23:32 (GMT) |
---|---|---|
committer | Magnus Lundborg <lundborg.magnus@gmail.com> | 2013-03-19 16:23:32 (GMT) |
commit | b97f4dff0e286abe9dfe6e9c14e988274541e974 (patch) | |
tree | f9f61465b68ecf2151c633ce8543db163aa58798 /CMakeLists.txt | |
parent | 30c94e0da4ffc0c7017c981b7305d855feea5441 (diff) |
If inttypes is not found (Visual Studio) some typedefs and defines need to be done
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6c84303..3a810af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,14 +11,17 @@ option(BUILD_FORTRAN "Build Fortran examples" OFF) option(USE_OPENMP "Try to use the OpenMP library (if available)" ON) if(USE_OPENMP) - FIND_PACKAGE(OpenMP) + find_package(OpenMP) if(OPENMP_FOUND) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}") endif() endif() -FIND_PACKAGE(ZLIB) +find_package(ZLIB) + +include(CheckIncludeFile) +check_include_file(inttypes.h HAVE_INTTYPES_H) add_subdirectory(src) @@ -27,7 +30,7 @@ file(COPY example_files DESTINATION .) #-- Add an Option to toggle the generation of the API documentation option(BUILD_DOCUMENTATION "Use Doxygen to create the HTML based API documentation" OFF) if(BUILD_DOCUMENTATION) - FIND_PACKAGE(Doxygen) + find_package(Doxygen) if (NOT DOXYGEN_FOUND) message(FATAL_ERROR "Doxygen is needed to build the documentation. Please install it correctly") |