George Neill wrote:

Setting these in the right place should work.

project(foo)
set(CMAKE_SHARED_LIBRARY_C_FLAGS "-xcode=pic32")
add_library(foo SHARED  foo.c)

I believe this is my issue, I am setting the variable before I issue
the PROJECT command.  I have created my own CMAKE_BUILD_TYPE's and I
do all of my "compiler" (flags, etc...) assignments before the PROJECT
command, is there a better way to do this?


That would do it...

You want to look at CMAKE_USER_MAKE_RULES_OVERRIDE:

http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:CMAKE_USER_MAKE_RULES_OVERRIDE

-Bill
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to