From 12a0b9ab6da5320bbaf8ae4311793517a2c92f9a Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 29 Apr 2010 15:23:43 +0000 Subject: [PATCH] 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." --- src/OpenThreads/pthreads/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/OpenThreads/pthreads/CMakeLists.txt b/src/OpenThreads/pthreads/CMakeLists.txt index b797d1f34..dabfdf473 100644 --- a/src/OpenThreads/pthreads/CMakeLists.txt +++ b/src/OpenThreads/pthreads/CMakeLists.txt @@ -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}