[vtkusers] static libs...

fred fredmfp at gmail.com
Wed Oct 18 18:35:31 EDT 2006


Mathieu Malaterre a écrit :

> Why don't you use CMake instead as Obada suggested ? It will do all of
> this for you transparently...

Because I did not understand {how/where} I can specify in my
CMakeLists.txt that I don't want shared libs.
And thus, it builds vtktest with shared libs.

 CMAKE_AR                        
/usr/bin/ar                                                     
 CMAKE_BACKWARDS_COMPATIBILITY   
2.4                                                             
 CMAKE_BUILD_TYPE                                                                                 

 CMAKE_COLOR_MAKEFILE            
ON                                                              
 CMAKE_CXX_COMPILER              
/usr/bin/c++                                                    
 CMAKE_CXX_FLAGS                                                                                  

 CMAKE_CXX_FLAGS_DEBUG           
-g                                                              
 CMAKE_CXX_FLAGS_MINSIZEREL       -Os
-DNDEBUG                                                    
 CMAKE_CXX_FLAGS_RELEASE          -O3
-DNDEBUG                                                    
 CMAKE_CXX_FLAGS_RELWITHDEBINFO   -O2
-g                                                          
 CMAKE_C_COMPILER                
/usr/bin/gcc                                                    
 CMAKE_C_FLAGS                                                                                    

 CMAKE_C_FLAGS_DEBUG             
-g                                                              
 CMAKE_C_FLAGS_MINSIZEREL         -Os
-DNDEBUG                                                    
 CMAKE_C_FLAGS_RELEASE            -O3
-DNDEBUG                                                    
 CMAKE_C_FLAGS_RELWITHDEBINFO     -O2
-g                                                          
 CMAKE_EXE_LINKER_FLAGS                                                                           

 CMAKE_EXE_LINKER_FLAGS_DEBUG                                                                     

 CMAKE_EXE_LINKER_FLAGS_MINSIZE                                                                   

 CMAKE_EXE_LINKER_FLAGS_RELEASE                                                                   

 CMAKE_EXE_LINKER_FLAGS_RELWITH                                                                   

 CMAKE_INSTALL_PREFIX            
/usr/local                                                      
 CMAKE_MAKE_PROGRAM              
/usr/bin/make                                                   
 CMAKE_MODULE_LINKER_FLAGS                                                                        

 CMAKE_MODULE_LINKER_FLAGS_DEBU                       
CMAKE_MODULE_LINKER_FLAGS_MINS                                                                   

 CMAKE_MODULE_LINKER_FLAGS_RELE                                                                   

 CMAKE_MODULE_LINKER_FLAGS_RELW                                                                   

 CMAKE_RANLIB                    
/usr/bin/ranlib                                                 
 CMAKE_SHARED_LINKER_FLAGS                                                                        

 CMAKE_SHARED_LINKER_FLAGS_DEBU                                                                   

 CMAKE_SHARED_LINKER_FLAGS_MINS                                                                   

 CMAKE_SHARED_LINKER_FLAGS_RELE                                                                   

 CMAKE_SHARED_LINKER_FLAGS_RELW                                                                   

 CMAKE_SKIP_RPATH                
OFF                                                             
 CMAKE_USE_RELATIVE_PATHS        
OFF                                                             
 CMAKE_VERBOSE_MAKEFILE          
OFF                                                             
 EXECUTABLE_OUTPUT_PATH                                                                           

 LIBRARY_OUTPUT_PATH                                                                              

 VTK_DIR                          /usr/lib/vtk

There is no BUILD_SHARED_LIBS ON/OFF :-(

So... any suggestion ? ;-)

Cheers,

-- 
http://scipy.org/FredericPetit




More information about the vtkusers mailing list