|
|
@@ -2,6 +2,8 @@
|
|
|
# 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(IOS_PLATFORM)
|
|
|
set(CMAKE_TOOLCHAIN_FILE cmake/Platform/iOS.cmake)
|
|
|
@@ -89,12 +91,6 @@ if(IOS)
|
|
|
endif(BUILD_SHARED_LIBS)
|
|
|
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(APPLE)
|
|
|
if(NOT "${CMAKE_GENERATOR}" STREQUAL "Xcode")
|
|
|
@@ -380,7 +376,7 @@ macro(bl_sample NAME)
|
|
|
if(BUILD_FRAMEWORK)
|
|
|
set_target_properties(${NAME} PROPERTIES LINK_FLAGS "-rpath @executable_path/../Frameworks")
|
|
|
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()
|
|
|
else()
|
|
|
add_executable(${NAME} ${${NAME}_SRC_FILES} ${${NAME}_HDR_FILES} )
|