Browse Source

looks like cmake is per design not for building static executables, clang too. =%-|

Ser Lev Arris 10 years ago
parent
commit
7a6c00ca11
1 changed files with 2 additions and 1 deletions
  1. 2 1
      CMakeLists.txt

+ 2 - 1
CMakeLists.txt

@@ -3,7 +3,8 @@ PROJECT( Assimp )
 
 option(BUILD_SHARED_LIBS "Build package with shared libraries." OFF)
 if(NOT BUILD_SHARED_LIBS)
-	set(CMAKE_EXE_LINKER_FLAGS "-static")
+        #set(CMAKE_EXE_LINKER_FLAGS "-static")
+        set(LINK_SEARCH_START_STATIC 1)
 endif(NOT BUILD_SHARED_LIBS)
 
 # Define here the needed parameters