fix Mac post-build bundle/link broken in a775cc4

Instead of checking if CMAKE_BUILD_TYPE is "Release", check that it is
**NOT** "Debug", because by default CMAKE_BUILD_TYPE is empty.
This commit is contained in:
Rafael Kitover 2016-11-02 19:01:42 -07:00
parent b7a633b70a
commit ba043f4f97
1 changed files with 1 additions and 1 deletions

View File

@ -249,7 +249,7 @@ if(APPLE)
# budle dylibs and relink them for releasing .app
# but only in Release mode
IF(CMAKE_BUILD_TYPE STREQUAL "Release")
IF(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
ADD_CUSTOM_COMMAND(TARGET visualboyadvance-m POST_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/tools/osx/third_party_libs_tool "$<TARGET_FILE_DIR:visualboyadvance-m>/../..")
ENDIF()