kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #21815
Re: OSX glm include dir incorrect
-
To:
kicad-developers@xxxxxxxxxxxxxxxxxxx
-
From:
Wayne Stambaugh <stambaughw@xxxxxxxxx>
-
Date:
Thu, 10 Dec 2015 11:38:26 -0500
-
In-reply-to:
<CAHBNN+OqvRXcgN6=ZCQPGvh1HgZaCQ1tv7bbW8mHXL++qAiagg@mail.gmail.com>
-
User-agent:
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0
Cirilo,
I already fixed all of this in my branch before you sent your patch. I
just committed the fix for this and gave you credit for the include path
fix.
Thanks,
Wayne
On 12/9/2015 5:33 PM, Cirilo Bernardo wrote:
> Yet another patch (removes a CMake warning). I missed one unmatched
> if() endif() tag. I opted to remove the tags in the endif() since the
> script is short and easy enough to read.
>
> - Cirilo
>
> On Thu, Dec 10, 2015 at 7:42 AM, Cirilo Bernardo
> <cirilo.bernardo@xxxxxxxxx <mailto:cirilo.bernardo@xxxxxxxxx>> wrote:
>
> Here's an even better patch which incorporates Brano's check on the
> return value.
> I wasn't checking for "-NOTFOUND". Sorry about the earlier
> half-assed patch.
>
> On Thu, Dec 10, 2015 at 7:28 AM, Cirilo Bernardo
> <cirilo.bernardo@xxxxxxxxx <mailto:cirilo.bernardo@xxxxxxxxx>> wrote:
>
> My mistake - it was only concidence that the FindGLM script
> worked since the
> default search paths happened to have a glm/ directory.
>
> The attached patch should fix the problem.
>
> - Cirilo
>
>
> On Thu, Dec 10, 2015 at 12:08 AM, Brano Panak <bpanak@xxxxxxxxx
> <mailto:bpanak@xxxxxxxxx>> wrote:
>
> Hi,
> on OSX in CMakeLists.txt
> find_package( GLM 0.9.5.4 REQUIRED ) in my setup (osx +
> brew) returns incorrect path resulting in compiling error
> glm/glm.hpp not found. Include path found is:
> /usr/local/include/glm.
> Correct should be: /usr/local/include because of includes
> from sources are <glm/glm.hpp>
> workaround could be changes in source to include <glm.hpp>
> or change includes from cmake
>
> my workaround:
> # Find GLM library
> find_path(GLM_INCLUDE_DIR "glm/glm.hpp")
> if(GLM_INCLUDE_DIR STREQUAL "GLM_INCLUDE_DIR-NOTFOUND")
> message(STATUS "glm not found")
> else()
> message(STATUS "glm include dir: ${GLM_INCLUDE_DIR}")
> include_directories("${GLM_INCLUDE_DIR}")
> endif()
>
> however this will not check glm version, could you please
> evaluate this workaround?
> regards
> Brano
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> <mailto:kicad-developers@xxxxxxxxxxxxxxxxxxx>
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
>
>
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~kicad-developers
> Post to : kicad-developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~kicad-developers
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References