summaryrefslogtreecommitdiff
path: root/indra/newview/CMakeLists.txt
diff options
context:
space:
mode:
authorBryan O'Sullivan <bos@lindenlab.com>2008-06-10 23:14:04 +0000
committerBryan O'Sullivan <bos@lindenlab.com>2008-06-10 23:14:04 +0000
commitc9ce59223cf2d27eead8a99762df796901216284 (patch)
tree324fd32635e23172bb3c644186bad70d23e1635c /indra/newview/CMakeLists.txt
parent78f7c3f4ef25f32459281d1f4db4706c4bac2a8b (diff)
Make Mac viewer build happier
Diffstat (limited to 'indra/newview/CMakeLists.txt')
-rw-r--r--indra/newview/CMakeLists.txt36
1 files changed, 17 insertions, 19 deletions
diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt
index ebc02b2357..6d1e58d40c 100644
--- a/indra/newview/CMakeLists.txt
+++ b/indra/newview/CMakeLists.txt
@@ -1189,8 +1189,7 @@ if (FMOD)
INSTALL_NAME_DIR "@executable_path/../Resources"
)
endif (DARWIN)
- set(FMODWRAPPER_LIBRARIES fmodwrapper)
- list(APPEND viewer_LIBRARIES fmodwrapper)
+ set(FMODWRAPPER_LIBRARY fmodwrapper)
target_link_libraries(fmodwrapper ${fmodwrapper_needed_LIBRARIES})
endif (NOT WINDOWS)
endif (FMOD)
@@ -1313,7 +1312,7 @@ target_link_libraries(secondlife-bin
${BOOST_REGEX_LIBRARY}
${BOOST_SIGNALS_LIBRARY}
${OPENGL_LIBRARIES}
- ${FMODWRAPPER_LIBRARIES}
+ ${FMODWRAPPER_LIBRARY}
${OPENGL_LIBRARIES}
${MOZLIB_LIBRARIES}
${SDL_LIBRARY}
@@ -1411,23 +1410,22 @@ if (DARWIN)
DEPENDS secondlife-bin ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
)
- add_custom_command(
- OUTPUT ${CMAKE_CFG_INTDIR}/.${product}.touched
- COMMAND ${PYTHON_EXECUTABLE}
- ARGS
- ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
- --configuration=${CMAKE_CFG_INTDIR}
- --channel=${VIEWER_CHANNEL}
- --source=${CMAKE_CURRENT_SOURCE_DIR}
- --artwork=${ARTWORK_DIR}
- --build=${CMAKE_CURRENT_BINARY_DIR}
- --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${product}.app
- --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.touched
- DEPENDS secondlife-bin ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
- )
-
if (PACKAGE)
- add_custom_target(package DEPENDS "${CMAKE_CFG_INTDIR}/.${product}.touched")
+ add_custom_target(package
+ COMMAND
+ ${PYTHON_EXECUTABLE}
+ ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
+ --configuration=${CMAKE_CFG_INTDIR}
+ --channel=${VIEWER_CHANNEL}
+ --source=${CMAKE_CURRENT_SOURCE_DIR}
+ --artwork=${ARTWORK_DIR}
+ --build=${CMAKE_CURRENT_BINARY_DIR}
+ --dest=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${product}.app
+ --touch=${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/.${product}.touched
+ DEPENDS
+ secondlife-bin
+ ${CMAKE_CURRENT_SOURCE_DIR}/viewer_manifest.py
+ )
endif (PACKAGE)
endif (DARWIN)