meson.build:241:2: ERROR: The CMake target lCoolProp does not exist

74 views
Skip to first unread message

PENG YAN

unread,
Sep 27, 2022, 7:49:19 AM9/27/22
to coolprop-users
Hi everyone, I hope you are fine.

Recently, I am coupling CoolProp and SU2. Since SU2 is complied by meson and ninja, so I have to add dependency of CoolProp in meson.build file.

What I add in meson.build file are as follows:
///////////////////
if get_option('enable-coolprop')
cmake = import('cmake')
coolprop_subproj = cmake.subproject('CoolProp')
coolprop_dep = coolprop_subproj.dependency('CoolProp')
su2_deps += coolprop_dep
su2_cpp_args += '-DHAVE_COOLPROP'
endif//////////////////////////////////////

when I compile using ninja, the error:

''meson.build:241:2: ERROR: The CMake target CoolProp does not exist
Use the following command in your meson.build to list all available targets:
message('CMaket targets:\n - ' + '\n - '.join(<cmake_subproject>.target_list()))''


so what is the CMake target  of CoolProp, or what should I write in:
'' coolprop_dep = coolprop_subproj.dependency('')''

Thank you!

Ian Bell

unread,
Sep 27, 2022, 11:15:16 AM9/27/22
to coolpro...@googlegroups.com
What target of coolprop do you want to use?  You'll want to specify that as no targets are exposed by default. 

--
You received this message because you are subscribed to the Google Groups "coolprop-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coolprop-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coolprop-users/e8bfc795-dc61-4ac9-9ce0-62758f467f66n%40googlegroups.com.

PENG YAN

unread,
Sep 27, 2022, 12:18:03 PM9/27/22
to coolprop-users
Hi, thank you for your reply.

I want to compute the entropy, total pressure, .ect. of nitrogen , CO2, MM, and so on.

Could you please provide more details of 'specify that as no targets are exposed by default. ?

Do you mean I leave a blank inside the circle bracket '' coolprop_dep = coolprop_subproj.dependency('')''?

Ian Bell

unread,
Sep 27, 2022, 12:22:37 PM9/27/22
to coolpro...@googlegroups.com
No you need to do the meson equivalent of specifying the command line argument -DCOOLPROP_STATIC_LIBRARY=ON 

PENG YAN

unread,
Sep 27, 2022, 12:57:34 PM9/27/22
to coolprop-users
Thank you, I will follow this idea.
 
Once I make some progress, I will update here.
Reply all
Reply to author
Forward
0 new messages