Browse Source

Minor fixes for merged code

David Wimsey 11 years ago
parent
commit
6151829b79
1 changed files with 3 additions and 7 deletions
  1. 3 7
      Build/CMakeLists.txt

+ 3 - 7
Build/CMakeLists.txt

@@ -2,6 +2,8 @@
 # Build script for libRocket =======
 # Build script for libRocket =======
 #===================================
 #===================================
 
 
+# This has to be before most other options so CMake properly handles the 
+# compiler variables, it MUST bebefore the project() definition
 if(APPLE)
 if(APPLE)
 	if(IOS_PLATFORM)
 	if(IOS_PLATFORM)
 		set(CMAKE_TOOLCHAIN_FILE cmake/Platform/iOS.cmake)
 		set(CMAKE_TOOLCHAIN_FILE cmake/Platform/iOS.cmake)
@@ -89,12 +91,6 @@ if(IOS)
 	endif(BUILD_SHARED_LIBS)
 	endif(BUILD_SHARED_LIBS)
 endif(IOS)
 endif(IOS)
 
 
-if(IOS)
-	if(BUILD_SHARED_LIBS)
-		message(FATAL_ERROR "BUILD_SHARED_LIBS must be OFF for iOS builds.  iOS does not support shared libraries.")
-	endif(BUILD_SHARED_LIBS)
-endif(IOS)
-
 if(BUILD_FRAMEWORK)
 if(BUILD_FRAMEWORK)
 	if(APPLE)
 	if(APPLE)
 		if(NOT "${CMAKE_GENERATOR}" STREQUAL "Xcode")
 		if(NOT "${CMAKE_GENERATOR}" STREQUAL "Xcode")
@@ -380,7 +376,7 @@ macro(bl_sample NAME)
 if(BUILD_FRAMEWORK)
 if(BUILD_FRAMEWORK)
 		set_target_properties(${NAME} PROPERTIES LINK_FLAGS "-rpath @executable_path/../Frameworks")
 		set_target_properties(${NAME} PROPERTIES LINK_FLAGS "-rpath @executable_path/../Frameworks")
 else()
 else()
-		set_target_properties(${NAME} PROPERTIES LINK_FLAGS "-rpath @executable_path/../lib -rpath")
+		set_target_properties(${NAME} PROPERTIES LINK_FLAGS "-rpath @executable_path/../lib")
 endif()
 endif()
     else()
     else()
     	add_executable(${NAME} ${${NAME}_SRC_FILES} ${${NAME}_HDR_FILES} )
     	add_executable(${NAME} ${${NAME}_SRC_FILES} ${${NAME}_HDR_FILES} )