From Bernardt Duvenhage: "I noticed that in 'src/OpenThreads/pthreads/CMakeLists.txt' a '!' has been written instead of 'NOT' within an if statement expression.

IF(!OSG_COMPILE_FRAMEWORKS) ...
vs.
IF(NOT OSG_COMPILE_FRAMEWORKS) ...

This has the effect of always compiling OpenThreads as a framework under OSX. The CMakeLists.txt that I use to be able to compile the non-framework version of OpenThreads is attached. I simply replaced the '!' replaced by a 'NOT' and added a MESSAGE to notify me when the .framework will be compiled."
This commit is contained in:
Robert Osfield
2010-04-29 15:23:43 +00:00
parent b028a59720
commit 12a0b9ab6d

View File

@@ -128,7 +128,7 @@ INSTALL(
RUNTIME DESTINATION bin COMPONENT libopenthreads
)
IF(!OSG_COMPILE_FRAMEWORKS)
IF(NOT OSG_COMPILE_FRAMEWORKS)
INSTALL(
FILES ${OpenThreads_PUBLIC_HEADERS}
DESTINATION include/OpenThreads
@@ -136,6 +136,7 @@ IF(!OSG_COMPILE_FRAMEWORKS)
)
ELSE()
MESSAGE("Will compile OpenThreads.framework!")
SET_TARGET_PROPERTIES(${LIB_NAME} PROPERTIES
FRAMEWORK TRUE
FRAMEWORK_VERSION ${OPENTHREADS_VERSION}