I have recently joined a project where I am to do some coding. The code base is cross platform HPC type code and the original coders have defined their own little/big endian #defines (L_ENDIAN & B_ENDIAN). They pass this into the compiler via -DL_ENDIAN during compiles.

Is there a way to automatically have cmake figure this out for me? Right now I have an OPTION(....) clause in my CMakeLists.txt file to select the right value.. which is stupid and error prone but it worked to boot strap the process for the moment.

Any hints would be appreciated..

--
Mike Jackson   Senior Research Engineer
Innovative Management & Technology Services


_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to