summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhengchao <[email protected]>2022-03-02 20:59:07 +0500
committerzhengchao <[email protected]>2022-03-04 10:33:51 +0500
commit7ab746369a56e32252a295d9d721b3b12034a8f2 (patch)
tree883c7e11aff21589ce0af3a173e5332eed96e42c
parentaac2a7ebd85af7f7fc3e2c24bf9e832a6196e62e (diff)
libMESA_field_stat2.a 没有使用-fPIC编译v2.10.7
-rwxr-xr-xCMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 06dd9d4..00192f4 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@ project (${lib_name})
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
include(Version)
-
+set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_MACOSX_RPATH 0)
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -Wall)