2012/2/5 Ilias Miroslav <[email protected]>:
> Dear Eric,
>
> yes, I would like to have static cmake execs for usage in (sometimes 
> unequipped) grid environment;
>
> I tried your buildup prescription, but got dynamic execs,

> [email protected]:~/bin/cmake_static/.cmake -DBUILD_SHARED_LIBS=OFF 
> -DCMAKE_EXE_LINKER_FLAGS_DEBUG="-static"  
> /home/ilias/bin/cmake_static/cmake-2.8.7
> -- Configuring done
> -- Generating done
> CMake Warning:
>  Manually-specified variables were not used by the project:
>
>    CMAKE_EXE_LINKER_FLAGS_DEBUG

Yes my example was meant for a DEBUD build so you should add
"-DCMAKE_BUILD_TYPE=Debug"
or "-DCMAKE_BUILD_TYPE=Release" and use:
-DCMAKE_EXE_LINKER_FLAGS_RELEASE="-static"




-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to