Thanks a lot, it worked.
Just for knowing... what is
ow_check_cxx_compiler_flag
is it a command or one of your macro?
does it test the existance of one compiler flag?
Thanks again
Luigi
Andreas Schneider wrote:
Luigi Calori wrote:
Is there a macro or variable to detect 32/64 architecture under Linux
(possibly also under windows)
In order to mimic pre-existent builds we have been asked to install on
lib64 if on a 64 architecture and lib or luib32 if appropriate
Hi Luigi,
I check the void pointer size.
if (UNIX AND NOT WIN32)
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
ow_check_cxx_compiler_flag("-fPIC" WITH_FPIC)
if (WITH_FPIC)
add_definitions(-fPIC)
endif (WITH_FPIC)
endif (CMAKE_SIZEOF_VOID_P MATCHES "8")
endif (UNIX AND NOT WIN32)
Thanks a lot
:)
-- andreas
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake