Skip to content

Commit b12f069

Browse files
authored
Merge pull request #166 from p01arst0rm/update-fpic
updated fpic definition
2 parents 8c2ce8d + 973345a commit b12f069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ add_definitions(-DNOMINMAX)
7272
endif()
7373

7474
if(NOT WIN32 AND NOT CMAKE_SYSTEM MATCHES "SunOS-5*.")
75-
add_definitions(-fPIC)
75+
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
7676
endif()
7777

7878
if(CYGWIN)

0 commit comments

Comments
 (0)