[CMake] Problem with TRY_RUN
Bill Hoffman
bill.hoffman at kitware.com
Sat May 24 17:30:03 EDT 2008
Eduardo Alberto Hernández Muñoz wrote:
>
> CMake complains about not finding the file before creating the makefile.
>
> -Coz
>
This works for me just fine:
message(STATUS "checking openal version")
TRY_RUN (
OPENAL_VERSION_1_1
OPENAL_COMPILED
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/check_openal_version_1_1.cpp
)
message("${OPENAL_VERSION_1_1}")
message("${OPENAL_COMPILED}")
----check_openal_version_1_1.cpp----
int main() { return 0;}
More information about the CMake
mailing list