tadd -fPIC compiler flag - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit cffa93765d7abff98555ac4d4d63ef6e4ea5c97b
 (DIR) parent 76c61faa7b321c49b02d819efdf4b4b891ca8ff6
 (HTM) Author: Anders Damsgaard <andersd@riseup.net>
       Date:   Wed,  6 Sep 2017 13:45:31 -0700
       
       add -fPIC compiler flag
       
       Diffstat:
         M src/CMakeLists.txt                  |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
       t@@ -22,6 +22,7 @@ ELSE()  # Fermi
                #"--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\";--fmad=false -ccbin gcc-4.6")
                "--use_fast_math;-O3;-gencode=arch=compute_20,code=\"sm_20,compute_20\";--fmad=false -ccbin gcc")
        ENDIF (GPU_GENERATION EQUAL 1)
       +SET(CMAKE_CXX_FLAGS "-fPIC ${CMAKE_CXX_FLAGS}")
        
        # Rule to build executable program 
        CUDA_ADD_EXECUTABLE(sphere