Skip to content

Commit

Permalink
tiff 2016-08-03 (a4c0c70d)
Browse files Browse the repository at this point in the history
Code extracted from:

    https://gitlab.kitware.com/third-party/tiff.git

at commit a4c0c70d32d3cc25a3127d40fd301db3bded8344 (for/vtk).
  • Loading branch information
kwrobot authored and mathstuf committed Aug 3, 2016
1 parent c025ef6 commit abdc7b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,12 @@ foreach(flag ${test_flags})
endif (${test_c_flag})
endforeach(flag ${test_flags})

# XXX(kitware): vtk does postfixes elsewhere.
if (FALSE)
if(MSVC)
set(CMAKE_DEBUG_POSTFIX "d")
endif()
endif ()

option(ld-version-script "Enable linker version script" ON)
# Check if LD supports linker scripts.
Expand All @@ -196,7 +199,7 @@ VERS_2 {
} VERS_1;
")
set(CMAKE_REQUIRED_FLAGS_SAVE ${CMAKE_REQUIRED_FLAGS})
set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} "-Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/conftest.map")
set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} "-Werror -Wl,--version-script=${CMAKE_CURRENT_BINARY_DIR}/conftest.map")
check_c_source_compiles("int main(void){return 0;}" HAVE_LD_VERSION_SCRIPT)
set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS_SAVE})
file(REMOVE "${CMAKE_CURRENT_BINARY_DIR}/conftest.map")
Expand Down

0 comments on commit abdc7b6

Please sign in to comment.