# i try to type findw3m.cmake for the last snort

**URL:** <https://discourse.cmake.org/t/i-try-to-type-findw3m-cmake-for-the-last-snort/5794>\
**Category:** Code\
**Tags:** os:linux\
**Created:** [June 4, 2022, 6:02pm UTC](https://discourse.cmake.org/t/i-try-to-type-findw3m-cmake-for-the-last-snort/5794 "2022-06-04T18:02:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Azaretdodo](https://discourse.cmake.org/user_avatar/discourse.cmake.org/azaretdodo/32/1451_2.png) [@Azaretdodo](https://discourse.cmake.org/u/Azaretdodo)\
**Post date:** [June 4, 2022, 6:02pm UTC](https://discourse.cmake.org/t/i-try-to-type-findw3m-cmake-for-the-last-snort/5794/1 "2022-06-04T18:02:30Z")

</div>

hello,

the code i have type here below :

```auto
# - Find w3m
# this module looks for w3m
#
# w3m:
# *_FOUND - if false, don't attempt to use above command

# to build:
# html (single or chunked) - w3m needed
# text - w3m needed
# pdf - w3m needed

set(ERROR_MESSAGE
    "install W3M to build the html user manual"
)

find_program (w3m)

include_directories(/etc/w3m/)
find_program(w3m
    REQUIRED_VARS w3m
    FAIL_MESSAGE "${ERROR_MESSAGE}"
)
mark_as_advanced(
    w3m
)

```

what is false ?

what can i do ?

i am in type this code from the asciidoc file you can find crazy type,

thank you in advance to help myself type a good file cmake,

Regards.

Dorian ROSSE.

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [June 6, 2022, 1:57pm UTC](https://discourse.cmake.org/t/i-try-to-type-findw3m-cmake-for-the-last-snort/5794/2 "2022-06-06T13:57:59Z")

</div>

This looks…odd. It’s not a _good_ find module, that’s for sure.

It’s not clear what your problem is here? Are you asking about the `w3m_FOUND` variable?

---

<div class="post-metadata">

**Author:** ![Azaretdodo](https://discourse.cmake.org/user_avatar/discourse.cmake.org/azaretdodo/32/1451_2.png) [@Azaretdodo](https://discourse.cmake.org/u/Azaretdodo)\
**Post date:** [June 6, 2022, 4:49pm UTC](https://discourse.cmake.org/t/i-try-to-type-findw3m-cmake-for-the-last-snort/5794/3 "2022-06-06T16:49:06Z")

</div>

Hello,

The problem happen since snort 3.3.30.0 was bad understand it script findasciidoc.cmake thus I have try with all my little knowledge in cmake to create this script,

You speak about w3m\_found how I can use this way if that works for my problem?

Have you some insight or way to follow finally for create a good script findw3m.cmake?

Thanks you in advance for your answer,

Regards.

Dorian Rosse.

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [June 6, 2022, 8:10pm UTC](https://discourse.cmake.org/t/i-try-to-type-findw3m-cmake-for-the-last-snort/5794/4 "2022-06-06T20:10:10Z")

</div>

What is here seems…serviceable, but without knowing what is wrong with it as-is, it’s hard to say how much the improvements I see would have any impact on whatever problem is actually at hand. How are you using what variables this find module sets? How do you expect it to work?

---

<div class="post-metadata">

**Author:** ![Azaretdodo](https://discourse.cmake.org/user_avatar/discourse.cmake.org/azaretdodo/32/1451_2.png) [@Azaretdodo](https://discourse.cmake.org/u/Azaretdodo)\
**Post date:** [June 7, 2022, 7:08am UTC](https://discourse.cmake.org/t/i-try-to-type-findw3m-cmake-for-the-last-snort/5794/5 "2022-06-07T07:08:21Z")

</div>

Hello,

I do what I can but the script is bad type thus I have type this e-mail to the list cmake…

The script find package handle standard argument I have called the variable w3m only by uppercase as this ‘W3M’ maybe I need respect how I have called and type outside this script only by the type lowercase ‘w3m’?

Do you think this is a good insight?

Have you another insight?

Have you a way to follow?

Thanks you in advance for your answer,

Regards.

Dorian Rosse.

---

<div class="post-metadata">

**Author:** ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)\
**Post date:** [June 8, 2022, 1:56pm UTC](https://discourse.cmake.org/t/i-try-to-type-findw3m-cmake-for-the-last-snort/5794/6 "2022-06-08T13:56:29Z")

</div>

> [@Azaretdodo](#):
>
> only by uppercase as this ‘W3M’ maybe I need respect how I have called and type outside this script only by the type lowercase ‘w3m’?

Yes. Use the case you called it with (it expects to be called as `w3m` though).
