[CMake] SS12 and -xcode=pic32
Bill Hoffman
bill.hoffman at kitware.com
Mon Oct 27 16:55:19 EDT 2008
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
More information about the CMake
mailing list