Skip to content

Commit 973345a

Browse files
author
p01arst0rm
committed
updated fpic definition
1 parent 8c2ce8d commit 973345a

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)