Skip to content

Commit

Permalink
enable CMAKE_POSITION_INDEPENDENT_CODE for all targets
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutoshvarma committed May 29, 2020
1 parent 30cfa66 commit f9f0a10
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.16)
project(libxpdf)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

include(external/external.cmake)

set(XPDF_DIRECTORY "xpdf-4.02")
Expand Down Expand Up @@ -35,4 +37,4 @@ target_include_directories(
${XPDF_DIRECTORY}/splash
)
target_link_libraries(xpdftest xpdf ${CMAKE_THREADS_LIB_INIT})
add_test(xpdf_test xpdftest ${PROJECT_SOURCE_DIR}/Resources/fourier.pdf)
add_test(xpdf_test xpdftest ${PROJECT_SOURCE_DIR}/Resources/fourier.pdf)

0 comments on commit f9f0a10

Please sign in to comment.