Changeset 17 for trunk/premake4.lua


Ignore:
Timestamp:
05/12/13 10:37:46 (12 years ago)
Author:
melon
Message:

Modified the premake script. Before the modification, compiler flags were missing
that enabled compilation on Linux (this flag is C++11).

Also added error handling if user didn't provide the target information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/premake4.lua

    r2 r17  
     1-- Error handling if user didn't provide any action/target
     2-- for the build
     3if _ACTION == nil then
     4        print "Error! You must specify target build"
     5        print "Example: ./premake4 gmake"
     6        print "    This will create makefiles for Linux"
     7        print ""
     8        print "Aborting!"
     9        print ""
     10        return
     11end
     12
    113solution "nv"
    214        configurations { "debug", "release" }
     15
     16        -- For starters, check the target build.
     17        -- If this is a gmake build we must add these
     18        -- flags to enable C++11 support.
     19        if _ACTION == "gmake" then
     20                buildoptions "-std=c++11"
     21        end
    322
    423        targetdir "bin"
Note: See TracChangeset for help on using the changeset viewer.