Skip to content
Snippets Groups Projects
Commit 688f0303 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Libtiff and win32 fix (absent nprintf function)

parent 347d8d89
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
if(BORNAGAIN_TIFF_SUPPORT) if(BORNAGAIN_TIFF_SUPPORT)
if(NOT TIFF_FOUND) if(NOT TIFF_FOUND)
message(INFO "aaa adding tiff")
add_subdirectory(libtiff) add_subdirectory(libtiff)
endif() endif()
endif() endif()
......
...@@ -63,7 +63,6 @@ set(include_files ...@@ -63,7 +63,6 @@ set(include_files
tiffconf.h tiffconf.h
) )
if(WIN32) if(WIN32)
list(APPEND source_files ${libtiff_source_dir}/tif_win32.c) list(APPEND source_files ${libtiff_source_dir}/tif_win32.c)
else() else()
...@@ -71,8 +70,8 @@ else() ...@@ -71,8 +70,8 @@ else()
endif() endif()
set(include_dirs ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${libtiff_source_dir}) #set(include_dirs ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${libtiff_source_dir})
#set(include_dirs ${CMAKE_CURRENT_SOURCE_DIR}) set(include_dirs ${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${include_dirs}) include_directories(${include_dirs})
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBA_POINTER_SIZE=${CMAKE_SIZEOF_VOID_P}") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBA_POINTER_SIZE=${CMAKE_SIZEOF_VOID_P}")
...@@ -96,8 +95,8 @@ set(${library_name}_LIBRARY_TYPE SHARED) ...@@ -96,8 +95,8 @@ set(${library_name}_LIBRARY_TYPE SHARED)
# exposing paths for library users # exposing paths for library users
#set(${library_name}_INCLUDE_DIRS ${include_dirs} PARENT_SCOPE) #set(${library_name}_INCLUDE_DIRS ${include_dirs} PARENT_SCOPE)
#set(${library_name}_LIBRARY ${library_name} PARENT_SCOPE) #set(${library_name}_LIBRARY ${library_name} PARENT_SCOPE)
set(TIFF_INCLUDE_DIR ${include_dirs} PARENT_SCOPE) set(TIFF_INCLUDE_DIR ${include_dirs} CACHE INTERNAL "")
set(TIFF_LIBRARIES ${library_name} PARENT_SCOPE) set(TIFF_LIBRARIES ${library_name} CACHE INTERNAL "")
target_link_libraries(${library_name} ${M_LIBRARY}) target_link_libraries(${library_name} ${M_LIBRARY})
......
...@@ -98,7 +98,9 @@ ...@@ -98,7 +98,9 @@
/* Define to 1 if you have the `snprintf' function. */ /* Define to 1 if you have the `snprintf' function. */
/* #undef HAVE_SNPRINTF */ /* #undef HAVE_SNPRINTF */
#ifdef _WIN32
#define HAVE_SNPRINTF #define HAVE_SNPRINTF
#endif
/* Define to 1 if you have the `sqrt' function. */ /* Define to 1 if you have the `sqrt' function. */
/* #undef HAVE_SQRT */ /* #undef HAVE_SQRT */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment