viamd
viamd copied to clipboard
Compiling OS X: MDLIB cmakelist
Hi,
I was getting this error:
~/Sources/viamd/build git:(master) cmake ..
-- Writing resources to gen/gl_shaders.inl
-- Writing resources to gen/gto_shaders.inl
-- Writing resources to gen/topo_shaders.inl
-- mdlib: Compiler detected as AppleClang
-- Including Cocoa support
-- Writing resources to gen/shaders.inl
-- Configuring done (0.2s)
CMake Error at ext/mdlib/CMakeLists.txt:405 (add_library):
Cannot find source file:
/Users/quertjjl/Sources/viamd/build/ext/mdlib/gen/topo_shaders.inl
CMake Error at ext/mdlib/CMakeLists.txt:405 (add_library):
No SOURCES given to target: mdlib
CMake Generate step failed. Build files cannot be regenerated correctly.
Not being well versed with cmake, I had to edit the file viamd/ext/mdlib/CMakelist.txt to correctly set the location of "topo_shaders.inl": line 201 replaced by
list(APPEND GEN_FILES/Users/quertjjl/Sources/viamd/ext/mdlib/gen/topo_shaders.inl)
Best, Jean