Changeset 6546

Show
Ignore:
Timestamp:
04/25/07 11:07:40
Author:
robert
Message:

From Eric Wing, "I made a mistake in my IF() checks for FOO_CONFIG_HAS_BEEN_RUN_BEFORE.
I was using ${FOO_CONFIG_HAS_BEEN_RUN_BEFORE} instead of just
FOO_HAS_BEEN_RUN_BEFORE.

In this case, it happened to work out to still be correct, but in
general it shouldn't have the ${}. (I really hate this syntax.)"

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenThreads/trunk/CMakeLists.txt

    r6488 r6546  
    197197    # will overwrite any changes the user sets. 
    198198    # FORCE is used because the options are not reflected in the UI otherwise. 
    199     IF(NOT "${OPENTHREADS_CONFIG_HAS_BEEN_RUN_BEFORE}"
     199    IF(NOT OPENTHREADS_CONFIG_HAS_BEEN_RUN_BEFORE
    200200        # This is really fragile, but CMake doesn't provide the OS system  
    201201        # version information we need. (Darwin versions can be changed  
     
    207207        ELSE(EXISTS /Developer/SDKs/10.5.sdk) 
    208208            IF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk) 
     209                # Unix layer on Tiger is 64-bit clean/ready so I think  
     210                # it is okay to build 64-bit here. This presumes we  
     211                # keep non-64-bit ready APIs (e.g. Carbon) out 
     212                # of OpenThreads. 
    209213                SET(CMAKE_OSX_ARCHITECTURES "ppc;i386;ppc64;x86_64" CACHE STRING "Build architectures for OSX" FORCE) 
    210214                #SET(CMAKE_OSX_ARCHITECTURES "ppc;i386" CACHE STRING "Build architectures for OSX" FORCE) 
     
    214218            ENDIF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk) 
    215219        ENDIF(EXISTS /Developer/SDKs/10.5.sdk) 
    216     ENDIF(NOT "${OPENTHREADS_CONFIG_HAS_BEEN_RUN_BEFORE}"
     220    ENDIF(NOT OPENTHREADS_CONFIG_HAS_BEEN_RUN_BEFORE
    217221ENDIF(APPLE) 
    218222 
     
    250254# This needs to be run very last so other parts of the scripts can take 
    251255# advantage of this. 
    252 IF(NOT "${OPENTHREADS_CONFIG_HAS_BEEN_RUN_BEFORE}"
     256IF(NOT OPENTHREADS_CONFIG_HAS_BEEN_RUN_BEFORE
    253257    SET(OPENTHREADS_CONFIG_HAS_BEEN_RUN_BEFORE 1 CACHE INTERNAL "Flag to track whether this is the first time running CMake or if CMake has been configured before") 
    254 ENDIF(NOT "${OPENTHREADS_CONFIG_HAS_BEEN_RUN_BEFORE}"
    255  
    256  
     258ENDIF(NOT OPENTHREADS_CONFIG_HAS_BEEN_RUN_BEFORE
     259 
     260