From: Fletcher T. Penney Date: Fri, 17 Feb 2017 01:06:29 +0000 (-0500) Subject: FIXED: Modify CMakeLists.txt to test for use of clang compiler X-Git-Tag: 0.3.1a^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a69b8d21f2f071e8fce80991baaa979836cb7105;p=multimarkdown FIXED: Modify CMakeLists.txt to test for use of clang compiler --- diff --git a/CMakeLists.txt b/CMakeLists.txt index c835efb..74ca925 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,8 +44,11 @@ include_directories( ${PROJECT_SOURCE_DIR}/src ) include_directories( ${PROJECT_SOURCE_DIR}/test ) include_directories(${PROJECT_BINARY_DIR}) -# Default is 256 -- needed for localization hash function -add_definitions("-fbracket-depth=264") +if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + # using Clang + # Default is 256 -- needed for localization hash function + add_definitions("-fbracket-depth=264") +endif() # =================