err, nevermind, i think that is a non-standard option or something. I am compiling someone's existing code and that is something leftover I think.
-Derek On Mon, Jul 16, 2012 at 11:44 AM, Derek Cole <[email protected]> wrote: > Hello, > > I have a CMake project with a few sub-projects to be built as well. In one > of the sub projects I want to compile to a shared object. I used the line > > add_library(myfiles SHARED myfiles.c) > > > in the main project's CMakeLists.txt I have > > SET(CMAKE_C_FLAGS_DEBUG "-g -fPIC -O0 -pipe -std=c99 -wOff") > > > > and yet I am getting an error that "Off is not a file or directory" > because the compile line looks like: > > usr/bin/gcc -g -fPIC -O0 -pipe -std=c99 Off -dynamiclib > -Wl,-headerpad_max_install_names .... > > > so it seems like cmake stripped off the -w from -wOff? Is this a bug? It > doesnt seem to be a problem if I change the library to "STATIC" instead of > SHARED >
-- 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
