Hi Martin
I' m working on Windows 32... so can not test
if I understand well you just want to be able to set
LIB_POSTFIX to "" or 32 or something else even if you fall in the 64 bit case
I think if you do
IF(UNIX AND NOT WIN32 AND NOT APPLE)
IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
SET(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement")
MARK_AS_ADVANCED(LIB_POSTFIX)
ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
ENDIF(UNIX AND NOT WIN32 AND NOT APPLE)
IF(NOT DEFINED LIB_POSTFIX)
SET(LIB_POSTFIX "")
ENDIF(NOT DEFINED LIB_POSTFIX)
it should work ... try it, I attch also a patch current svn
hope it helps
Luigi
Martin Spott wrote:
Hi Robert,
"Robert Osfield" wrote:
On 5/4/07, Martin Spott <[EMAIL PROTECTED]> wrote:
Luigi Calori wrote:
This should make the prefix available in the interface under advanced
options
SET(LIB_POSTFIX "" CACHE STRING "suffix for 32/64 dir placement")
MARK_AS_ADVANCED(LIB_POSTFIX)
Where should I place this ? I guess Robert doesn't want to see his
LIB_POSTFIX declaration being replaced ;-)
My guess this would be added to the OpenSceneGraph/CMakeLists.txt.
Where ? Right _before_ the current LIB_POSTFIX declaration, just
_after_ the current one, somewhere else, maybe within the current
declaration ? Your guess is a bit vague ;-)
Martin.
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt (revision 6607)
+++ CMakeLists.txt (working copy)
@@ -170,13 +170,16 @@
SET(CMAKE_DEBUG_POSTFIX "d")
-SET(LIB_POSTFIX "")
IF(UNIX AND NOT WIN32 AND NOT APPLE)
IF(CMAKE_SIZEOF_VOID_P MATCHES "8")
- SET(LIB_POSTFIX "64")
+ SET(LIB_POSTFIX "64" CACHE STRING "suffix for 32/64 dir placement")
+ MARK_AS_ADVANCED(LIB_POSTFIX)
ENDIF(CMAKE_SIZEOF_VOID_P MATCHES "8")
ENDIF(UNIX AND NOT WIN32 AND NOT APPLE)
-
+IF(NOT DEFINED LIB_POSTFIX)
+ SET(LIB_POSTFIX "")
+ENDIF(NOT DEFINED LIB_POSTFIX)
+
#SET(OUTPUT_BINDIR ${PROJECT_BINARY_DIR}/bin/${CMAKE_SYSTEM_NAME})
SET(OUTPUT_BINDIR ${PROJECT_BINARY_DIR}/bin)
MAKE_DIRECTORY(${OUTPUT_BINDIR})
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/